Skip to main content

Module replay

Module replay 

Available on crate features quic and std and ua only.
Expand description

Compile a selected QUIC tuple into ordinary native configuration extensions.

The outer UA connect modifier selects and admits a complete connection tuple, then this compiler supplies TlsClientConfig and QuicProfile extensions. The native connector consumes those settings exactly as it would settings from a custom layer or relay. It owns the endpoint, configuration cache, peer-bound TLS session and connection I/O; it never receives a counted profile.

Supply the same fixed policy and provider to the compiler and native connector. The profile inserts its settings when it prepares a connection, so a setting inserted after that wins and an earlier one is replaced. The common UA modifier applies admitted HTTP settings before connecting and publishes profile facts only after its inner connector succeeds. Its context check is at that boundary; a connection-scoped recipe adapts its offer to final endpoint ECH.

The ticket namespace combines the stable profile identity with the caller’s scope, independently of each connection draw. A private UA marker shares the installed and original scope values so a repeated preparation cannot wrap the namespace again. It holds no native session, provider or TLS configuration.

Capability admission covers only the native subset actually compiled here. In particular, HTTP/3 startup/QPACK sequences need their own implementation; a decoded capture alone does not grant replay support.

Structs§

CompiledConnection
Admitted settings moved into the request before the native connector runs.
ConnectionProfileCompiler
Register with the outer UA connect modifier around a native QUIC connector.