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: ability to read body separate from header #1130

Merged
merged 8 commits into from Oct 22, 2021
Merged

feat: ability to read body separate from header #1130

merged 8 commits into from Oct 22, 2021

Conversation

ShivanshVij
Copy link
Contributor

This PR simply moves reading the message body into its own function for both the request and response object.

This is in reference to #1129, and it does not change FastHTTP functionally, simply moves reading the body into its own (exported) function.

This will allow FastHTTP to support streaming protocols for reverse proxying (and potentially in the FastHTTP HostClient as well), by simply adding the ability to read the request/response bodies separate from their headers.

Copy link
Collaborator

@erikdubbelboer erikdubbelboer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small addition.

http.go Outdated Show resolved Hide resolved
As per @erikdubbelboer suggestion

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
@ShivanshVij
Copy link
Contributor Author

Great, I've made the changes. I noticed the 1.15 MacOS test failed - is that a flaky test or did this change inadvertently break something?

@erikdubbelboer
Copy link
Collaborator

It's flaky.

@erikdubbelboer erikdubbelboer merged commit 528dd62 into valyala:master Oct 22, 2021
@erikdubbelboer
Copy link
Collaborator

Thanks!

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.

None yet

2 participants