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§
- Connect
UdpMitm - Service created by
ConnectUdpMitmLayer. - Connect
UdpMitm Layer - Explicitly select CONNECT-UDP datagrams in an HTTP/3 MITM relay.
- Connect
UdpRelay Request Matcher - Select CONNECT-UDP upgrades for an HTTP/1.1 or HTTP/2 MITM relay.
- Connect
UdpRelay Response Matcher - 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.