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

feat(http): allow specifying custom body streams #1066

Merged
merged 1 commit into from
Feb 17, 2017

Conversation

seanmonstar
Copy link
Member

This allows the outgoing stream (server::Response and client::Request) to be customized. The default is still hyper::Body, as it will be a fast, easy-to-use type. But now you can define the body stream to any type, where T: Stream<Error=hyper::Error>, T::Item: AsRef<[u8]>.

This address a large amount of what has been discussed in #953

@seanmonstar seanmonstar merged commit 3cf3b75 into master Feb 17, 2017
@seanmonstar seanmonstar deleted the outgoing-generic branch February 17, 2017 02:15
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.

1 participant