Skip to main content

Module session

Module session 

Source
Expand description

Per-connection proxy session β€” forwards streams between client and relay.

StructsΒ§

ForwardCtx πŸ”’
Shared context for forwarding helpers, avoiding repeated parameter lists.
ProxySession
A proxy session that forwards traffic between a client and an upstream relay. One session is created per accepted client connection.
ProxySessionConfig
Configuration for a proxy session’s upstream connection.
SkipVerification πŸ”’
TLS certificate verifier that skips all verification (testing only).

EnumsΒ§

UpstreamTransportType
The transport type for upstream relay connections.

FunctionsΒ§

detect_draft_from_setup πŸ”’
Try to detect the concrete draft version by peeking at the first SETUP message on a control stream.
detect_stream_type πŸ”’
Determine the data stream type from the first varint on the stream.
emit_parsed_frames πŸ”’
Feed bytes to the control parser and emit observer events for any completed frames.
forward_control_stream πŸ”’
Forward the control stream (first bidirectional stream).
forward_datagrams πŸ”’
Forward datagrams from source to destination.
forward_mutated_frames πŸ”’
Feed bytes into the capturing control parser, then forward each completed frame β€” giving the hook the chance to rewrite it.
forward_uni_streams πŸ”’
Forward unidirectional streams from source to destination.
pipe_control πŸ”’
Pipe a control stream direction.
pipe_control_mutating πŸ”’
Parse-then-forward control stream pipe.
pipe_control_passthrough πŸ”’
Forward-first control stream pipe.
pipe_data πŸ”’
Pipe a unidirectional data stream with inline parsing.
varint_len πŸ”’
Determine the encoded length of a QUIC varint from its first byte.
version_varint_to_draft πŸ”’
Convert an on-wire MoQT version varint (0xff000000 + draft) to a DraftVersion, or None if the value is malformed or unsupported.