Skip to content
André Borchert edited this page Nov 13, 2026 · 64 revisions

WebTransport

A reference implementation of WebTransport over HTTP/3, shipped as two independent libraries in one repository:

Library What it is Where
Swift package Async client/server API over Network.framework QUIC, plus layered QUIC, TLS and HTTP/3 modules and two CLI peers. Apple platforms only. Package.swift, Swift/Sources/
C99 library Portable C99 CMake library with a static and a shared build, three CLI tools and its own test suite. C99/

Both are released together, at the same version, from one tag.

Baseline

Release 1.8
Protocol IETF draft-ietf-webtrans-http3-17, published 2 November 2026
Swift platform macOS 26 or later
Swift toolchain Xcode 27 or later, Swift 6.4 or later, Swift language mode 6
Swift runtime Network.framework QUIC with Apple Security and CryptoKit
C99 toolchain CMake 3.28+, Ninja, OpenSSL 3.0

Start here

I want to… Read
Build and run a client, a server or a CLI tool Getting Started
Know exactly what works today Implementation Status
Know what does not work, and what to do instead Known Limitations
Understand how the code is laid out Architecture
Find a file, a test or a vector Repository Guide
Build, test or contribute Development and Testing
Understand the trust model and the scans Security and Trust
Cut a release, or read the interop evidence Release and Interoperability
See what changed in each version Changelog
See the open work Project Tracker

Use it

From Swift

import Foundation
import WebTransport

let client = WebTransportClient(configuration: WebTransportClientConfiguration(
    authority: "example.com",
    path: "/wt",
    origin: "https://example.com",
    availableProtocols: ["demo.v1"]
))

let session = try await client.connect(
    to: WebTransportEndpoint(host: "example.com", port: 443)
)
let stream = try await session.openBidirectionalStream()
try await stream.send(Data("hello".utf8), endOfStream: true)
let response = try await stream.receive()
try await session.close()

A server needs a real identity: the built-in development certificate is refused on any non-loopback address, because a peer cannot validate a self-signed certificate for a routable name. Pass a PKCS#12 identity instead, and admission: .publicFacing with settingsValidation: .interoperable if browsers have to connect.

let server = WebTransportServer(configuration: WebTransportServerConfiguration(
    authority: "example.com",
    identity: .pkcs12(data: bundle, passphrase: passphrase),
    admission: .publicFacing
))

Certificate trust is the client default, and the certificate is verified against the configured authority rather than the address dialled — to: may be an address the name is merely reachable at, while a certificate that does not cover the authority is still refused.

From C99

The C99 build produces three tools. Start a server, then point a client at it:

C99/scripts/build-and-test.sh                       # builds and runs the 105-test suite

C99/out/macos26/build/apps/wt-server-c99 --port 4433 &
C99/out/macos26/build/apps/wt-client-c99 --port 4433

C99/out/macos26/build/apps/wt-conformance-c99 --scenario all    # the tool's own 57 scenarios

<platform> is macos26 on macOS, debian or freebsd elsewhere; the build script writes out/<platform>/{build,build-release,build-sanitize}.

Quick verification

From the repository root, with Xcode 27 / Swift 6.4 installed:

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

For the C99 library:

C99/scripts/build-and-test.sh

Reporting a vulnerability

Use the private security advisory form. Do not open a public issue for a vulnerability.

Clone this wiki locally