-
Notifications
You must be signed in to change notification settings - Fork 2k
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
HTTP2 support #1237
Comments
q.v. https://tools.ietf.org/html/rfc7540#section-8.1.2.3 This has some specific guidance on how to convert HTTP/2 pseudo headers into HTTP/1.1 headers. E.g. "An intermediary that converts an HTTP/2 request to HTTP/1.1 MUST create a Host header field if one is not present in a request by copying the value of the ":authority" pseudo-header field." |
You could check maybe Redbird implementation of it. https://github.com/OptimalBits/redbird |
Interesting. From what I can tell, Redbird uses the 'spdy' module in place of the https module if HTTP/2 is enabled, and apparently that's sufficient. The relevant code from redbird/proxy.js is this:
|
+1 |
Nice, I didn't know the |
spdy apparently does not work for node versions above 10.5, so its suitability as a workaround is diminishing. |
Any updates here ? |
Can it support HTTP/3.0? (I'm not a devil) |
Now that HTTP2 is in core, it should be supported by node-http-proxy.
My initial efforts to try to make this work result in the following errror:
I think this is because in http-proxy/lib/http-proxy/common.js, setupOutgoing() is basically copying headers from the incoming request to the outgoing request, and HTTP2 headers start with colons, but HTTP1 headers cannot.
The text was updated successfully, but these errors were encountered: