Skip to main content

Module matcher

Module matcher 

Available on crate features http and std and ws only.
Expand description

WebSocket matcher utilities

Structs§

HttpWebSocketRelayHandshakeRequest
Snapshot stored on the matched HTTP request by HttpWebSocketRelayServiceRequestMatcher if configured to do so. It is also selected for transfer to the upgraded ingress stream by HttpUpgradeMitmRelay after both relay upgrades succeed.
HttpWebSocketRelayHandshakeResponse
Snapshot stored on the matched HTTP response by HttpWebSocketRelayServiceResponseMatcher if configured to do so. It is also selected for transfer to the upgraded egress stream by HttpUpgradeMitmRelay after both relay upgrades succeed.
HttpWebSocketRelayServiceRequestMatcher
Default matcher that can be used for Http websocket relays.
HttpWebSocketRelayServiceResponseMatcher
Created by HttpWebSocketRelayServiceRequestMatcher for a valid 101 Switching Protocol response, following the websocket request which started the handshake, request match.
RelayWebSocketConfig
A WebSocketConfig extracted as part of the handshake phase prior to the relay…
WebSocketMatcher
WebSocket Matcher to match on incoming WebSocket requests.

Functions§

is_http_req_websocket_handshake