Skip to main content

Module inspect

Module inspect 

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

WebSocket inspection layered onto an HTTP handshake capture. HTTP owns the handshake and generic upgrade lifetime; this module owns message records, replay, injection and relay decisions.

Modules§

har
Streaming WebSocket HAR fields, owned by the WebSocket adapter.

Structs§

CaptureWebSocketLayer
Bind an inspector exchange to the lifetime of the actual WebSocket relay.
CaptureWebSocketService
CapturedWebSocketMessage
WebSocketDetails
WebSocketLimits
Per-exchange limit on retained WebSocket messages.
WebSocketMessageMetadata
Small serializable message head, independent of its raw payload reader.
WebSocketMessagePreview
Bounded raw payload prefix with the original message metadata and full length.

Enums§

WebSocketMessageKind
WebSocketMessageOrigin
WebSocketReplayError

Traits§

CaptureWebSocketExt

Functions§

inspect_websocket_event
observe_handshake
Recognize an HTTP/1 upgrade or HTTP/2 extended CONNECT handshake. The marker and limits are owned here; HTTP capture doesn’t import WebSocket definitions.
read_details
Read a page from a retained exchange, including after it leaves the live capture list.
read_preview_details
Read a page of bounded prefixes for a GUI or TUI without materializing messages. The interface chooses its per-message limit from the metadata. Full payloads remain available through record streams and the explicit owned details API.