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§
- Http
Header - HTTP header key-value pair
- Http
Header Vec - Http
Header VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data. - Http
Request Config - HTTP request configuration (C-compatible)
- Http
Response - HTTP response with status code, headers, and body
- Http
Response TooLarge Error - Response too large error
- Http
Status Error - HTTP status error (4xx, 5xx responses)
Enums§
- Http
Error - HTTP error types (C-compatible)
- Http
Header VecDestructor - Option
Http Header - Result
Http Response Http Error - Result
U8Vec Http Error
Functions§
- download_
bytes - Stub:
httpfeature disabled. - download_
bytes_ with_ config - Stub:
httpfeature disabled. - http_
get - Stub:
httpfeature disabled. - http_
get_ with_ config - Stub:
httpfeature disabled. - is_
url_ reachable - Stub:
httpfeature disabled.
Type Aliases§
- Http
Header VecDestructor Type - Http
Result - Result type for HTTP operations