pub fn stream<S>(s: S) -> BodyExpand description
Creates a streaming body from an async byte stream.
Replaces hyper::Body::wrap_stream(s).
The stream must yield Result<Bytes, io::Error>. Each successful item is
wrapped as an HTTP data Frame before being fed into the body.