behindHAProxy :: SocketA socket you've just accepted
-> SockAddrand its peer address
-> (ProxyInfo -> InputStream ByteString -> OutputStream ByteString -> IO a)-> IO a
Parses the proxy headers emitted by HAProxy and runs a user action with
the origin/destination socket addresses provided by HAProxy. Will throw a
Sockets.ParseException if the protocol header cannot be parsed properly.
We support version 1.5 of the protocol (both the "old" text protocol and the "new" binary protocol.). Typed data fields after the addresses are not (yet) supported.