Expand description
Per-connection proxy session β forwards streams between client and relay.
StructsΒ§
- Forward
Ctx π - Shared context for forwarding helpers, avoiding repeated parameter lists.
- Proxy
Session - A proxy session that forwards traffic between a client and an upstream relay. One session is created per accepted client connection.
- Proxy
Session Config - Configuration for a proxy sessionβs upstream connection.
- Skip
Verification π - TLS certificate verifier that skips all verification (testing only).
EnumsΒ§
- Upstream
Transport Type - 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 aDraftVersion, orNoneif the value is malformed or unsupported.