Skip to content

Add WebTransport client (wt_* API)#857

Merged
benoitc merged 2 commits into
masterfrom
webtransport-client
May 29, 2026
Merged

Add WebTransport client (wt_* API)#857
benoitc merged 2 commits into
masterfrom
webtransport-client

Conversation

@benoitc
Copy link
Copy Markdown
Owner

@benoitc benoitc commented May 29, 2026

Adds a wt_* client API mirroring the WebSocket ws_* API, so code switches by swapping the ws_ prefix for wt_. Runs over HTTP/3 (default) or HTTP/2 via the webtransport library, with no custom wire framing so it interoperates with any WebTransport server.

One session multiplexes many streams (wt_open_stream, wt_stream_send/recv, datagrams) like HTTP/2; wt_send/wt_recv use a persistent default stream for ws parity. Request path and headers are checked for CR/LF/NUL and a buffer cap bounds unread data. Includes the WebTransport guide (client and server side) and tests.

benoitc added 2 commits May 29, 2026 15:52
Mirrors the WebSocket ws_* API over HTTP/3 or HTTP/2 via the webtransport library.
@benoitc benoitc merged commit 97a95f6 into master May 29, 2026
6 checks passed
@benoitc benoitc deleted the webtransport-client branch May 29, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant