Skip to content

Examples ​

This section contains practical httpx.zig demo programs for client, server, middleware, streaming, and protocol features.

How to Use ​

  1. Open an example page.
  2. Review the Demo Program snippet.
  3. Run the matching command from the Run section.
  4. Verify behavior with the checklist.

For non-host targets, compile (without running) by adding -Dtarget=...:

bash
zig build example-tcp_local -Dtarget=x86_64-linux
zig build example-http3_example -Dtarget=aarch64-macos

Available Examples ​

Released under the MIT License.