-
Notifications
You must be signed in to change notification settings - Fork 18
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
Implement BufRead for BodyReader #45
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
208610d
to
95ade8a
Compare
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't used these new APIs that much so I'll let @rmja comment as well, but I think it looks good.
The question is more that this PR makes the old API slightly slower :) |
Is it correctly understood that the underlying non-tls connection now must implement |
This PR allows users to read from a TLS connection without copying. Non-TLS sessions will be able to save some memory by reusing the initial read buffer that was passed in to store the HTTP headers.