body method

Future<Uint8List> body()

Get the body of the request as Uint8List

Implementation

Future<Uint8List> body() async {
  BytesBuilder bytesBuilder = await _httpRequest.fold<BytesBuilder>(
      BytesBuilder(copy: false), (a, b) => a..add(b));
  return bytesBuilder.takeBytes();
}