Closed
Description
Hi,
I am currently writing a toy HTTP proxy using hyper with tokio (current master). While plain HTTP proxying was easy to write, I am struggling with how to handle CONNECT tcp tunnels (typically used to proxy https without ssl interception).
How would you proceed to switch from the Http service to a raw tcp proxy service (such as the one demonstrated in tokio-socks5
) on the same socket ?
Solving this issue would also be beneficial for switching protocols to websockets or cleartext http2.
Thank you in advance for any advice.
Florent