pipe method

Future<void> pipe(
  1. Stream<String> source
)

Pipes a text source stream into the response.

Implementation

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