Given connection
to communicate with a proxy (eg, a SocketConnection
that is connected to the proxy server), this does the necessary handshake to connect to proxy_address
, and if required, wraps
the IOStream to handle proxy payload.
this |
a Proxy |
connection |
a IOStream |
proxy_address | |
cancellable |
a IOStream that will replace |