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 Body::from_stream #1752

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Add Body::from_stream #1752

merged 1 commit into from
Feb 13, 2023

Conversation

davidpdrsn
Copy link
Member

@davidpdrsn davidpdrsn commented Feb 12, 2023

Inspired by hyper's Body::wrap_stream.

With this we can remove StreamBody but I think I'll do that in another PR as it impacts things like AsyncReadBody.

Maybe we could also add Body::from_async_read? Though that'd require axum-core to depend on tokio-util 🤔

Inspired by hyper's `Body::wrap_stream`.
@davidpdrsn davidpdrsn merged commit b6cc689 into v0.7.0 Feb 13, 2023
@davidpdrsn davidpdrsn deleted the body-from-stream branch February 13, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants