addStream method

  1. @override
Future<void> addStream(
  1. Stream<List<int>> stream
)
override

Appends every chunk of stream to the body; completes when the stream is done. Use it to send a file or a proxied body without holding it in memory.

Implementation

@override
Future<void> addStream(Stream<List<int>> stream) => stream.forEach(add);