Skip to main content

Module protocol_detect

Module protocol_detect 

Source
Expand description

Public types for protocol detection results stored on ConnContext.user by the listener-side peek prelude.

See spec/crates/engine.md § Protocol detection. The detector functions themselves (which run rustls’s Acceptor to parse a ClientHello) live in vane-engine since rustls is an engine-level dependency. Predicates and middleware in vane-core reach the buffer + parsed fields through the types defined here.

Structs§

PeekResult
TlsClientHello

Enums§

DetectedProtocol

Constants§

MAX_PEEK_BYTES
Maximum number of bytes the listener-side peek prelude accumulates before declaring the connection’s prefix Unknown. Mirrors spec/crates/engine.md § Protocol detection’s 8 KiB cap.