Repository navigation
Architecture
Swift is the active implementation. The C99/ and CPP/ trees define planned layouts and implementation plans; they do not contain protocol implementations.
Public API and command-line tools
-> WebTransport
-> WebTransportNetworkRuntime
-> WebTransportHTTP3Core
-> WebTransportQUICCore + WebTransportTLSCore
-> WebTransportCryptoApple + WebTransportUDPApple
More precisely:
-
WebTransportdepends onWebTransportHTTP3Core,WebTransportNetworkRuntime, andWebTransportQUICCore. -
WebTransportNetworkRuntimedepends on the crypto, HTTP/3, QUIC, TLS, and UDP modules. -
WebTransportHTTP3Core,WebTransportTLSCore, andWebTransportCryptoAppledepend onWebTransportQUICCore. -
WebTransportCLIConformancesupplies shared scenarios to both command-line tools.
-
WebTransportClientreceives a public API configuration or command-line arguments. - A real network session validates that packet transport is selected.
-
WebTransportQUICClientapplies the selected trust policy and opens a Network.framework QUIC connection. - The client exchanges HTTP/3 control streams.
- It sends a WebTransport extended CONNECT request on a bidirectional request stream.
- The response headers and negotiated settings are validated.
- A
WebTransportNetworkSessioncarries application streams, datagrams, drain, and close operations.
-
WebTransportServerreceives listener configuration or--listenarguments. - A real network session validates that packet transport is selected.
-
WebTransportQUICServercreates a TLS identity and a Network.framework listener. - The server accepts a QUIC connection and exchanges HTTP/3 control streams.
- It decodes the extended CONNECT request.
-
WebTransportServerSessionPolicychecks authority, path, optional origin, supported protocols, and required settings. - The server returns response headers and creates a
WebTransportNetworkSession.
The public Swift concurrency API. It defines client and server configuration, endpoints, actors, listeners, sessions, bidirectional streams, opt-in logging, and public error descriptions. Public API compatibility and redacted output are its main compatibility constraints.
The Network.framework QUIC/TLS/HTTP/3 runtime. It owns endpoint parsing, trust selection, network sessions, datagrams, timeouts, and connection lifecycle behavior.
HTTP/3 frames and settings, QPACK, extended CONNECT, WebTransport sessions, streams, datagrams, buffering, and flow control. This module parses peer-controlled data and requires strict bounds and deterministic malformed-input behavior.
QUIC byte cursors, variable-length integers, packets, frames, transport parameters, stream identifiers, and connection state primitives.
TLS 1.3 handshake messages, certificate verification, key schedule, and QUIC TLS state. Application-key readiness is gated by trust, CertificateVerify, Finished, ALPN h3, and QUIC transport parameters.
Apple-backed QUIC initial-key derivation and packet-protection helpers.
A Darwin UDP helper for tests and local packet probes. Its public binding path is restricted to loopback hosts.
The shared positive and negative scenario harness used by WebTransportClient and WebTransportServer.
- Command-line and configuration input enters through argument and endpoint parsing.
- Network peers control HTTP/3, QPACK, QUIC, TLS, stream, datagram, and session input.
- Platform trust is the default; local self-signed trust is explicit and loopback-only.
- Public logging and errors must not reveal secrets, payloads, connection identifiers, raw session identifiers, or peer close text.
- External interoperability scripts accept environment configuration and write proof artifacts under
.build/.
See Security and Trust for the security invariants attached to these boundaries.