-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Incoming HTTP2 bodies should know content_length #1546
Comments
Is it worth I assuming that a request without a |
I think this is about returning the value of the |
That makes sense. Thanks @lnicola |
Exactly as @lnicola said. This is about when a user receives a As the documentation of |
@joshleeb Do you want to take this? |
Yea sure, thanks 😄 |
When receiving a body over HTTP2, the
Body::content_length
call should be able to say how big it is if thecontent-length
header was present.Steps to fix
Kind::H2
variant ofBody
to include anOption<u64>
.Body::h2
constructor to take a secong argument,Option<u64>
.proto::h2::client
andproto::h2::server
to look for and parse acontent-length
header before callingBody::h2
.The text was updated successfully, but these errors were encountered: