hypercorn icon indicating copy to clipboard operation
hypercorn copied to clipboard

Support for PROXY-Protocol

Open apollo13 opened this issue 1 year ago • 2 comments

It would be great if hypercorn could support the proxy protocol (https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt). This is generally a good alternative to the x-forward-* headers. Would this be something that you'd be willing to add to hypercorn?

apollo13 avatar Dec 29 '23 10:12 apollo13

I think this would work as another mode to the ProxyFixMiddleware?

pgjones avatar Dec 29 '23 10:12 pgjones

I fear not. The PROXY protcol works below HTTP basically. So you'd have metadata sent when the TCP Connection is opened and only then you have the usual HTTP stuff.

apollo13 avatar Dec 29 '23 10:12 apollo13