toBytes method

Future<Uint8List> toBytes()

Listens to this streamed request/response body and combines all chunks of bytes into a single list of bytes.

Implementation

Future<Uint8List> toBytes() => http_utils.reduceByteStream(byteStream);