Skip to main content

Module mitm

Module mitm 

Available on crate features http-full and http only.

Structs§

DefaultErrorResponse
Default Response used in case the inner (egress) client of the HttpMitmRelay is erroring.
HttpMitmRelay
A utility that can be used by MITM services such as transparent proxies, in order to relay HTTP requests and responses between a client and server, as part of a deep protocol inspection protocol (DPI) flow.

Constants§

DEFAULT_EAGER_PEER_SETTINGS_TIMEOUT
Default hard cap on how long we wait for the upstream’s initial h2 SETTINGS frame during eager egress handshake before giving up and treating the connection as non-compliant. Keeps adversarial / dead-but-open peers from stalling the relay indefinitely. Override per-instance with HttpMitmRelay::with_eager_peer_settings_timeout.

Type Aliases§

DefaultMiddleware
Default middleware used by HttpMitmRelay, most likely you’ll want to overwrite it with custom middleware, unless you do not require MITM middleware.