Skip to content

Adapters for AsyncRead and Stream? #35

@davidpdrsn

Description

@davidpdrsn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions