-
-
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
Refactor HTTP upgrades into Extensions #2340
Labels
A-http1
Area: HTTP/1 specific.
C-refactor
Category: refactor. This would improve the clarity of internal code.
E-medium
Effort: medium. Some knowledge of how hyper internal works would be useful.
Comments
seanmonstar
added
E-medium
Effort: medium. Some knowledge of how hyper internal works would be useful.
A-http1
Area: HTTP/1 specific.
C-refactor
Category: refactor. This would improve the clarity of internal code.
labels
Nov 20, 2020
I'd like to try solving this if it's OK? I started a draft PR #2353, but could use some guidance as I'm unsure about a few things (some basic Rust things, and how to get state into the extensions of Requests and Responses f.ex.). I'm interested in learning to contribute to hyper, and this looks like it could be a place to start :) |
aknuds1
added a commit
to aknuds1/hyper
that referenced
this issue
Dec 13, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
added a commit
to aknuds1/hyper
that referenced
this issue
Dec 13, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
added a commit
to aknuds1/hyper
that referenced
this issue
Dec 13, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
added a commit
to aknuds1/hyper
that referenced
this issue
Dec 13, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
added a commit
to aknuds1/hyper
that referenced
this issue
Dec 15, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
aknuds1
added a commit
to aknuds1/hyper
that referenced
this issue
Dec 15, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
seanmonstar
pushed a commit
that referenced
this issue
Dec 15, 2020
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes #2340. Signed-off-by: Arve Knudsen <[email protected]>
BenxiangGe
pushed a commit
to BenxiangGe/hyper
that referenced
this issue
Jul 26, 2021
Move state required for protocol upgrades to head representations, instead of associating it with the body. Closes hyperium#2340. Signed-off-by: Arve Knudsen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-http1
Area: HTTP/1 specific.
C-refactor
Category: refactor. This would improve the clarity of internal code.
E-medium
Effort: medium. Some knowledge of how hyper internal works would be useful.
In #2086, it was outlined how the HTTP upgrades should be moved off the
Body
type (and intoExtensions
). The public facing part was done, now we just need to update the internalproto::h1
stuff to stash them into theExtensions
instead of on a privateBody
field.In order to do so, the
proto::MessageHead
will need to gain anextensions
field, so we can place them there.The text was updated successfully, but these errors were encountered: