Skip to content

Is it doable to convert requests/responses between HTTP/1.1 and HTTP/2 in Hyper? #3404

Answered by seanmonstar
OldMansKid asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can mostly just pass-through the request from one version to another. hyper will handle encoding/decoding the headers and body according to the way the protocol version requires. The only thing you'd really need to do is check for a few headers that might come via HTTP/1.1 that are no longer allowed in HTTP/2 (like connection). Well, that and anything else expect of a transparent proxy.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OldMansKid
Comment options

Answer selected by OldMansKid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants