body property

Future<Object?> get body

Parse the body automatically and return the result

Implementation

Future<Object?> get body async {
  const cachedBodyKey = '_cachedBodyResponse';
  final cachedBody = store.tryGet<Object?>(cachedBodyKey);
  if (cachedBody != null) {
    return cachedBody;
  } else {
    final dynamic body = (await HttpBodyHandler.processRequest(this)).body;
    store.set(cachedBodyKey, body);
    return body;
  }
}