Expand description
HTTP/1.1 client library for VeridianOS
Provides an HTTP request builder, incremental response parser, and client abstraction for sending requests over TCP connections. Supports chunked transfer encoding, keep-alive, redirects, basic authentication, cookies, and query string encoding.
Structs§
- Http
Client - HTTP client with configurable defaults.
- Http
Request - An HTTP request ready to be serialized and sent.
- Http
Response - An HTTP response.
- Parsed
Url - Parsed URL components.
- Response
Parser - Incremental HTTP response parser.
Enums§
- Content
Encoding - Content-Encoding types.
- Http
Error - Errors that can occur during HTTP operations.
- Http
Method - HTTP request methods
- Parse
State - Current state of the incremental response parser.
Constants§
- DEFAULT_
MAX_ REDIRECTS - Default maximum redirects to follow
- DEFAULT_
TIMEOUT_ MS - Default request timeout in milliseconds
- HTTPS_
PORT - Default HTTPS port
- HTTP_
PORT - Default HTTP port
- MIME_
APPLICATION_ JSON - application/json
- MIME_
APPLICATION_ OCTET_ STREAM - application/octet-stream
- MIME_
FORM_ URLENCODED - application/x-www-form-urlencoded
- MIME_
TEXT_ HTML - text/html
- MIME_
TEXT_ PLAIN - text/plain
Functions§
- basic_
auth_ header - Construct a Basic Authentication header value.
- build_
cookie_ header - Build a Cookie header value from a list of (name, value) pairs.
- encode_
query_ string - Encode a list of key-value pairs into a query string.
- percent_
encode - Percent-encode a string for use in URL query parameters.