Skip to content

API Overview ​

This page maps the explicit public API surface exposed by httpx.zig.

Root Module (httpx) ​

The root module re-exports core types and convenience helpers so most apps can import only httpx.

Client Helpers ​

  • httpx.fetch(allocator, url)
  • httpx.send(allocator, method, url, options)
  • httpx.get/post/put/delete/del/patch/head/options/opts(...)

Concurrency Helpers ​

  • httpx.all(...)
  • httpx.any(...)
  • httpx.race(...)
  • httpx.allSettled(...)
  • httpx.first(...) (alias for any)
  • httpx.fastest(...) (alias for race)
  • httpx.settled(...) (alias for allSettled)
  • httpx.BatchBuilder

Network Helpers ​

  • httpx.netInit() / httpx.netDeinit()
  • httpx.resolveAddress(host, port)
  • httpx.resolveAllAddresses(allocator, host, port)
  • httpx.parseHostAndPort(input, default_port)
  • httpx.parseAndResolveAddress(input, default_port)
  • httpx.isIpAddress/isIp4Address/isIp6Address(...)

Utility Aliases ​

  • httpx.queryValue(...)
  • httpx.parseQueryValue(...)
  • httpx.parseSetCookiePair(...)
  • httpx.parseCookiePair(...)
  • httpx.encodeVarInt(...)
  • httpx.decodeVarInt(...)

API Groups ​

Explicit Support Notes ​

  • HTTP/1.0 and HTTP/1.1 are production runtime paths in the high-level client/server API.
  • HTTP/2 has high-level client and server runtime paths plus full protocol primitives (HPACK/framing/streams).
  • HTTP/3 has high-level client and server runtime paths over UDP/QUIC stream framing, plus full protocol primitives (QPACK/HTTP3/QUIC framing).
  • Cross-platform validation is maintained for Linux/Windows (x86, x86_64, aarch64) and macOS (x86_64, aarch64) build matrices.

Released under the MIT License.