Repository navigation
Implementation Status
The Swift implementation targets IETF draft-ietf-webtrans-http3-16, published on 6 July 2026, and is marked 100% against the project's draft-16 compliance matrix. C99 and C++ remain planned work.
The repository-root package exposes:
WebTransportWebTransportNetworkRuntimeWebTransportHTTP3CoreWebTransportQUICCoreWebTransportTLSCoreWebTransportCryptoAppleWebTransportUDPAppleWebTransportClientWebTransportServer
The nested Swift/Package.swift also provides LibrarySmokeClient, LibrarySmokeServer, and internal test support.
The high-level WebTransport product provides:
-
WebTransportClientConfigurationandWebTransportServerConfigurationfor authority, path, origin, subprotocol policy, trust policy, settings validation, optimistic CONNECT capsules, and timeouts. -
WebTransportEndpointandWebTransportConnectionResultfor network endpoint and connection result values. -
WebTransportClientandWebTransportServerfor Swift concurrency connection and listener creation. -
WebTransportListeningServerfor accepting sessions, reporting the local endpoint, and shutting down the listener. -
WebTransportSessionandWebTransportBidirectionalStreamfor stream, datagram, drain, close, and session-bound TLS exporter operations over the production runtime. -
WebTransportLogger,WebTransportLogEvent, andWebTransportErrorSurfacefor opt-in redacted observability.
Deprecated demo-only client, server, stream, and session types are not part of the production API.
The Swift implementation includes:
- HTTP/3 frames, SETTINGS, control streams, request streams, GOAWAY, and error mapping.
- Extended CONNECT establishment and rejection policy for WebTransport sessions.
- Draft-16 optimistic CONNECT capsules, processed after acceptance and discarded after rejection.
- Structured Fields parsing and serialization for
WT-ProtocolandWT-Available-Protocols. - QPACK static, literal, Huffman, dynamic table, Base, and post-Base behavior.
- WebTransport streams, datagrams, buffering, rejection, close, drain, reset, stop-sending, and directional draft-16 flow control. Session data credit counts stream body bytes, not datagrams.
- Draft-16 close-message validation, strictly increasing flow limits, the
2^60stream-limit ceiling, and rejection of HTTP/2-only per-stream capsules over HTTP/3. - QUIC variable-length integers, packets, frames, transport parameters, packet protection, and core state.
- TLS/QUIC application-key readiness gated by certificate trust, CertificateVerify, Finished, ALPN
h3, and QUIC transport parameters, with the draft-16EXPORTER-WebTransportbinding. - Packet-protected QUIC Initial CRYPTO validation, including Certificate, CertificateVerify, and Finished.
- Transcript-derived 1-RTT packet keys for protected HTTP/3 WebTransport CONNECT and DATAGRAM signaling.
- A Network.framework QUIC/TLS/HTTP/3 runtime for the package API and separate-process command-line tools.
- A raw-frame compatibility mode restricted to lower-level conformance scenarios.
- Explicit platform trust by default and an opt-in, loopback-only local self-signed mode.
The repository includes:
- Shared positive and negative client/server conformance scenarios for CONNECT, streams, datagrams, GOAWAY, close and drain, malformed input, and flow-control failures.
- Parser and property tests for QPACK, HTTP/3 frames, capsules, QUIC variable-length integers, transport parameters, WebTransport stream prefixes, malformed peers, ordering, replay, resource exhaustion, and close/reset races.
- Process tests for help, scenario listing, invalid input, JSON contracts, exit status, failure logs, IPv4 and IPv6 packet loopback, unsupported real-network transport modes, and occupied ports.
- Concurrent session stress, deterministic soak, datagram load, backpressure, network impairment, and runtime security-negative tests.
- Release artifact smoke tests and a standalone public API compatibility sample.
- DocC validation, release reproducibility checks, package tests, and both conformance suites in GitHub Actions.
- External stream and QUIC DATAGRAM interoperability proof against independent implementations.
Public log and error surfaces are designed to avoid TLS secrets, certificate material, packet bytes, datagram payloads, QUIC connection identifiers, raw session identifiers, and peer close reason text.
The release workflow produces reproducibility-checked Apple Silicon client and server executables with SHA256SUMS. External proof runners cover local independent implementations, a configured endpoint, and a five-implementation Debian 13 VPS matrix.
The 1.1.0 local third-party gate passed on 11 August 2026 with four required proofs across three independent implementations. The five-implementation VPS proof remains point-in-time evidence from 20 June 2026. See Release and Interoperability for the tested implementations and commands.
The C99/ directory contains an implementation plan, planned source and API directories, test and application skeletons, platform build-support placeholders, and a generated artifact layout. It does not contain protocol source, a build system, command-line implementations, or conformance tests.
The C++23 implementation directory is named CPP/ to avoid + characters in paths. It contains an implementation plan, planned source and API directories, test and application skeletons, platform build-support placeholders, and an artifact layout. It does not contain protocol source, a build system, command-line implementations, or conformance tests.