Skip to content

Working with CONNECT tunnels  #1037

Closed
Closed
@fmonjalet

Description

@fmonjalet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-serverArea: server.C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions