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:
_http_outgoing.js:490
throw new TypeError(`Header name must be a valid HTTP Token ["${name}"]`);
^
TypeError: Header name must be a valid HTTP Token [":path"]
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.
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.