Skip to content

Guides

简体中文 · Documentation

Recipes for specific tasks. Each guide stands on its own and assumes you know the basics from the tutorial; exact signatures and defaults are in the reference.

Guide When you need to
HTTP configuration and recipes Control response completion and closing, keep an explicit listener, add HTTPS, reuse connections, set bounds, check headers before accepting a body
Protocol tuning Reuse buffers, set deadlines and concurrency limits for TCP, UDP, DNS, TLS, WebSocket, HTTP/1, HTTP/2, HTTP/3 and QUIC, and place work on workers
TUN devices Read and write IP packets from a TUN device on Linux (multi-queue too), Android, macOS, FreeBSD, or Wintun on Windows

More guides arrive with the 1.0 protocol work: reverse proxying, SNI routing, custom congestion control, relays and tunnels, SOCKS5, CONNECT-UDP and ECH.