Skip to main content

stream

Function stream 

Source
pub fn stream<S>(s: S) -> ReplyData
where S: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static,
Expand description

Build a streaming-body reply from a stream of byte chunks. The body is written out as the stream yields, not buffered.