⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module http

Module http 

Source
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§

HttpClient
HTTP client with configurable defaults.
HttpRequest
An HTTP request ready to be serialized and sent.
HttpResponse
An HTTP response.
ParsedUrl
Parsed URL components.
ResponseParser
Incremental HTTP response parser.

Enums§

ContentEncoding
Content-Encoding types.
HttpError
Errors that can occur during HTTP operations.
HttpMethod
HTTP request methods
ParseState
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.