bodyAsStream property

Future<Stream<List<int>>> get bodyAsStream

Returns the body of HTTP request as stream of bytes.

Implementation

Future<Stream<List<int>>> get bodyAsStream async {
  final List<int> bodyRaw = await body;
  return Stream<List<int>>.fromIterable(<List<int>>[bodyRaw]);
}