Skip to main content

Module http

Module http 

Source
Expand description

HTTP client: GET/POST requests with pure-Rust TLS.

API surface always present (stub when off); ureq/rustls only pulled in with http. Simple HTTP client module for downloading resources (language packs, etc.)

Uses ureq for simple, blocking HTTP requests. Designed to be exposed via C API.

Structs§

HttpHeader
HTTP header key-value pair
HttpHeaderVec
HttpHeaderVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
HttpRequestConfig
HTTP request configuration (C-compatible)
HttpResponse
HTTP response with status code, headers, and body
HttpResponseTooLargeError
Response too large error
HttpStatusError
HTTP status error (4xx, 5xx responses)

Enums§

HttpError
HTTP error types (C-compatible)
HttpHeaderVecDestructor
OptionHttpHeader
ResultHttpResponseHttpError
ResultU8VecHttpError

Functions§

download_bytes
Stub: http feature disabled.
download_bytes_with_config
Stub: http feature disabled.
http_get
Stub: http feature disabled.
http_get_with_config
Stub: http feature disabled.
is_url_reachable
Stub: http feature disabled.

Type Aliases§

HttpHeaderVecDestructorType
HttpResult
Result type for HTTP operations