pipe method

Future<void> pipe(
  1. Stream<List<int>> source
)

Pipes a binary source stream into the response.

Implementation

Future<void> pipe(Stream<List<int>> source) async {
  await for (final chunk in source) {
    if (_aborted) break;
    await write(chunk);
  }
}