Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AsyncReadBody #41

Closed
wants to merge 1 commit into from
Closed

Add AsyncReadBody #41

wants to merge 1 commit into from

Conversation

davidpdrsn
Copy link
Member

Adds http_body::adapters::AsyncReadBody which turns an AsyncRead into a Body. I'm using this in tower-http for serving static files. Figured it might be nice to upstream.

Fixes #35

@davidpdrsn
Copy link
Member Author

Much has changed since I opened this. Probably easier to just make a new PR than rebase it.

@davidpdrsn davidpdrsn closed this Feb 12, 2023
@davidpdrsn davidpdrsn deleted the david/read-adapters branch February 12, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapters for AsyncRead and Stream?
1 participant