In tower-http we have an adapter that makes an AsyncRead into a Body https://github.com/tower-rs/tower-http/blob/serve-file/tower-http/src/serve_file.rs#L107. Is that something you'd be interested in upstreaming to http-body? Might be useful for others.
Adapters for Stream<Item = Bytes> and Stream<Item = Vec<u8>> might also be nice.
If you're interested I can submit a PR.
In tower-http we have an adapter that makes an
AsyncReadinto aBodyhttps://github.com/tower-rs/tower-http/blob/serve-file/tower-http/src/serve_file.rs#L107. Is that something you'd be interested in upstreaming to http-body? Might be useful for others.Adapters for
Stream<Item = Bytes>andStream<Item = Vec<u8>>might also be nice.If you're interested I can submit a PR.