Skip to main content

observe_handshake

Function observe_handshake 

pub fn observe_handshake(
    parts: &Parts,
    metadata: &CaptureMetadata,
    limits: WebSocketLimits,
) -> bool
Available on crate features http and inspect and std and ws only.
Expand description

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.