Skip to main content

Module advanced

Module advanced 

Source
Expand description

Dedicated listener handlers for multiplexed and upgraded transports.

Functionsยง

serve_h2_connection
Serve an HTTP/2 prior-knowledge or TLS/ALPN listener. Each CONNECT stream is routed independently while the parent connection continues accepting unrelated streams. Stream tasks are spawned onto tasks and cancelled via cancel so shutdown coordination can track and drain live tunnels.
serve_websocket_connection
Serve a WebSocket listener. WebSocket listeners use a fixed target because the upgrade request itself carries no proxy CONNECT authority.