An HTTP library for Zig 0.17, server and client, HTTP/1.0 through HTTP/3, with the protocol in a module that owns no socket.

Let the client fetch over HTTP/3 when asked

`http_io.Client.http3` is `.off`, `.only` or `.prefer`. For an `https` URL not going through a proxy, `.only` fetches over HTTP/3 or fails with the QUIC handshake's error, and `.prefer` falls back to TCP when no handshake completes -- before anything was sent, so a request is never sent twice. Each resolved address is tried in turn within `http3_handshake_timeout`; a refused certificate is never retried elsewhere, as over TLS. `http3_config` is passed to the driver. `http_io.http3.Dialer.Options` gains `handshake_timeout_ns`, which quic_io's client already took. Tests serve HTTP/3 on the TCP fixture's port number with the same certificate: `.only`, `.prefer` both ways, a body, a streamed body, a redirect and gzip over HTTP/3, no HTTP/3 for `http` URLs or through a proxy, and `Client.timeout` cancelling a QUIC handshake. `--fetch-http3 only|prefer` on the binary; Cloudflare, Google and git.jcollie.dev answer it over HTTP/3. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WDqSwYUZcHphiWeCMCzEeK


Author jcollie.dev
Co-author Claude Opus 5.5 (1M context) Date Commit Parent 8aaed5d4
+457 -14
5 changed files
+457 -14
5 changed files