Skip to content
Pummelchen edited this page Sep 16, 2026 · 64 revisions

WebTransport

WebTransport is an actively developed Swift reference implementation of WebTransport over HTTP/3. It combines a high-level Swift concurrency API with layered protocol modules, command-line peers, conformance tests, and independent interoperability tooling.

Current baseline

Release 1.4.0
Protocol IETF draft-ietf-webtrans-http3-16, published 6 July 2026
Platform macOS 26 or later
Toolchain Xcode 27 or later, Swift 6.4 or later, Swift language mode 6
Runtime Network.framework QUIC with Apple Security and CryptoKit

The Swift compliance matrix passes in full. The C99/ tree is a second implementation in progress: Phases 0 to 9 and Phase 11 (the interop matrix) are complete, and Phase 10's test port and Phase 12's CI legs are under way on main -- the build system and core utilities, the QUIC wire core, the crypto provider and packet protection, a TLS 1.3 handshake that runs end to end over CRYPTO frames, the QUIC connection runtime, the HTTP/3 core, QPACK including its dynamic table, the draft-16 WebTransport session layer with its capsules and flow control, and the public consumer API (an opaque session handle, the event-loop seam, the session's flow control, endpoints and trust, a self-signed identity for local development, and a one-call client opening sequence). It RUNS sessions: the conformance tool stands up two endpoints in one process over IPv4 and IPv6 -- handshake, an extended CONNECT accepted by the draft-16 validator, a response, a message on a WebTransport stream and a message as a datagram -- and wt-client-c99 and wt-server-c99 exchange a session with each other in two processes. Four CTest entries are end-to-end rather than codec-level. It also interoperates: C99/scripts/run-container-interop.sh completes a whole session and the message exchange against every peer this repository can start -- pywebtransport/aioquic, quinn and quiche -- in a container (the peer logs stream in: 13 bytes / stream echoed and the client reports received 13 byte(s)), and pywebtransport's own client completes one against wt-server-c99, so both directions are covered. What remains is the rest of the test port and a CI job for the FreeBSD and Windows legs: both are measured by hand (the whole suite on a real FreeBSD 15.1 kernel; 85 of 85 test executables under Wine, 64,900 checks), the tree compiles, links and runs for Windows, and the VPS matrix is closed at seven proofs across five independent implementations with --trust system. Running the Windows branch is what found and fixed WT-199 and WT-200. Its status is tracked at Implementation Status and Project Tracker.

Project intent

The repository is designed to make WebTransport behavior inspectable and testable in Swift:

  • a small application-facing API for clients, listeners, sessions, streams, and datagrams;
  • separate HTTP/3, QUIC, TLS, crypto, and network-runtime layers;
  • explicit malformed-input, flow-control, trust, and lifecycle behavior;
  • reproducible command-line releases and external interoperability evidence.

This is a reference implementation under active development. Review Known Limitations before production adoption.

Start here

Use the package

Understand the implementation

Develop and release

Quick verification

From the repository root:

swift build
swift test
swift run WebTransportClient --scenario all
swift run WebTransportServer --scenario all

Use the security advisory form for private vulnerability reports.

Clone this wiki locally