Skip to content

Implementation Status

André Borchert edited this page Aug 11, 2026 · 152 revisions

Implementation Status

The active Swift implementation targets IETF draft-ietf-webtrans-http3-16, published on 6 July 2026. Every item in the repository's draft-16 compliance matrix currently passes, backed by protocol, runtime, process, and interoperability tests.

This status is an implementation claim, not a general certification. The project remains macOS-specific and under active development; see Known Limitations.

Public API

Surface Responsibility
WebTransportClientConfiguration Authority, path, origin, subprotocols, trust, settings profile, optimistic capsules, and timeout.
WebTransportServerConfiguration Listener admission policy, supported subprotocols, settings profile, timeout, and local-only binding.
WebTransportClient Establish outbound WebTransport sessions.
WebTransportServer Create configured listeners.
WebTransportListeningServer Report the bound endpoint, accept sessions, and shut down the listener.
WebTransportSession Streams, datagrams, drain, close, endpoints, selected protocol, and TLS exporter material.
WebTransportBidirectionalStream Send and receive application data over a QUIC stream.
WebTransportLogger and WebTransportErrorSurface Opt-in sanitized events and redacted public error text.

The high-level package intentionally exposes a smaller surface than the protocol-core modules. Unidirectional stream handling exists in the core but is not currently part of the application-facing WebTransportSession API.

Protocol coverage

Area Implemented behavior
Session establishment HTTP/3 extended CONNECT, authority/path/origin policy, subprotocol negotiation, acceptance, and rejection.
Draft-16 behavior Optimistic capsules, directional flow control, strictly increasing limits, close-message validation, excessive-session rejection, and session-bound TLS exporter context.
Streams and datagrams Bidirectional and core unidirectional streams, QUIC DATAGRAM signaling, buffering, backpressure, reset, stop-sending, close, and drain.
HTTP/3 and QPACK SETTINGS, control/request streams, frames, GOAWAY, static and dynamic QPACK behavior, Huffman coding, Base, and post-Base references.
QUIC Variable-length integers, packets, frames, stream identifiers, transport parameters, flow/congestion state, loss and ACK helpers, and packet protection.
TLS 1.3 Handshake messages, transcript and key schedule, certificate trust and CertificateVerify gating, Finished, ALPN h3, QUIC parameters, and exporter material.
Runtime Network.framework QUIC client/server sessions, packet transport, trust policies, endpoints, timeouts, and connection lifecycle.

Validation evidence

  • 211 Swift tests cover the public API, runtime, protocol layers, crypto, UDP, process behavior, stress, malformed input, and resource limits.
  • Client and server command-line conformance suites each contain 40 positive and negative scenarios.
  • CI enforces the Swift 6.3.3 toolchain baseline, strict memory and concurrency diagnostics, builds the package and DocC, compiles a standalone API consumer, verifies reproducible release artifacts, runs the test suite, and runs both conformance suites.
  • Release 1.2.0 passed four required stream/datagram proofs across pywebtransport/aioquic, Quinn, and Quiche implementations.

See Development and Testing for commands and Release and Interoperability for proof boundaries.

Package layers

The repository-root package exports the high-level WebTransport product, six lower-level libraries, and the WebTransportClient and WebTransportServer executables. The nested Swift/Package.swift additionally provides smoke-test executables and shared test support.

Planned ports

C99/ and CPP/ contain implementation plans, directory skeletons, and platform placeholders. Neither tree contains a working protocol stack, build system, CLI implementation, or conformance suite. Their status must remain “planned” until runnable code and equivalent evidence exist.

Clone this wiki locally