stream<T> method
Streams any type of data to the client (convenience method).
Implementation
Future<void> stream<T>(
Stream<T> stream, {
String contentType = 'application/octet-stream',
Map<String, String>? headers,
List<int> Function(T)? toBytes,
}) async {
await _body.stream(
stream,
contentType: contentType,
headers: headers,
toBytes: toBytes,
);
_sent = true;
}