Skip to main content

peek_client_hello_from_input_with_config

Function peek_client_hello_from_input_with_config 

pub async fn peek_client_hello_from_input_with_config<PeekableInput>(
    input: PeekableInput,
    options: PeekOptions,
    config: ClientHelloReassemblyConfig,
) -> Result<(<PeekableInput as PeekIoProvider>::Mapped<PrefixedIo<HeapReader, <PeekableInput as PeekIoProvider>::PeekIo>, PrefixedIo<ReplayReader, <PeekableInput as PeekIoProvider>::PeekEgressIo>>, Option<ClientHello>), Error>
where PeekableInput: PeekIoProvider, <PeekableInput as PeekIoProvider>::PeekIo: Unpin, <PeekableInput as PeekIoProvider>::PeekEgressIo: Unpin,
Available on crate feature tls only.
Expand description

Peek a ClientHello with explicit PeekOptions and reassembly configuration.

Unparseable, over-limit, and EOF-truncated TLS selects fallback. Use peek_client_hello_from_input_with_policies to opt into rejection or obtain the inspection status.