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.
Errors and utilities
Result codes, the event loop and token helpers.
Parser
The incremental HTTP/1.1 response parser.
Header store
Compact storage and lookup for header fields.
Writer
Bounded buffers and header serialization.
URLs
RFC 3986 parsing and reference resolution.