API reference#

Everything is declared in a single header, lwhttp.h. Most programs only need the client API; the lower layers are exported for programs that bring their own transport or parse HTTP from other sources.

Client

Create clients, send requests, read responses.

Client
Errors and utilities

Result codes, the event loop and token helpers.

Errors and utilities
Parser

The incremental HTTP/1.1 response parser.

Parser
Header store

Compact storage and lookup for header fields.

Header store
Writer

Bounded buffers and header serialization.

Writer
URLs

RFC 3986 parsing and reference resolution.

URLs