Skip to main content

Module mitm

Module mitm 

Available on crate feature masque only.
Expand description

Relay a client’s own CONNECT-UDP session to its chosen proxy.

These adapters validate successful responses without interpreting the proxy’s URI template or resolving the UDP target. The chosen proxy validates requests and owns their error responses. Inner payloads and unknown capsules are forwarded opaquely. The carrier HTTP version is preserved.

Structs§

ConnectUdpMitm
Service created by ConnectUdpMitmLayer.
ConnectUdpMitmLayer
Explicitly select CONNECT-UDP datagrams in an HTTP/3 MITM relay.
ConnectUdpRelayRequestMatcher
Select CONNECT-UDP upgrades for an HTTP/1.1 or HTTP/2 MITM relay.
ConnectUdpRelayResponseMatcher
The response half of ConnectUdpRelayRequestMatcher.

Functions§

relay
Bounded opaque forwarding, with the same two-minute idle default as a CONNECT-UDP socket. A half-close allows five seconds for the other direction to drain. Shutdown and errors abort both stream-local transports.