StreamedResponse constructor
StreamedResponse(})
Creates a new streaming response.
stream
should be a single-subscription stream.
Implementation
StreamedResponse(Stream<List<int>> stream, super.statusCode,
{super.contentLength,
super.request,
super.headers,
super.isRedirect,
super.persistentConnection,
super.reasonPhrase})
: stream = toByteStream(stream);