WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
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