Skip to main content

Module http

Module http 

Source
Available on crate feature http only.
Expand description

HTTP client (http::RestClient). HTTP client (RestClient) and free helpers (http_get_yaml, headers_get).

Requires the http feature (which implies rhai). All requests use the global client identity from crate::set_client_name as User-Agent.

Structs§

RestClient
Reqwest-based HTTP client with builder-style header / TLS configuration.

Enums§

CreateMethod
DeleteMethod
ReadMethod
UpdateMethod

Functions§

headers_get
Case-insensitive lookup of a single response header by name. headers is the opaque Vec<(String, String)> returned as the headers field of get/post/… results — it carries no rhai-visible indexing or iteration of its own, so this is the only way to read a specific header from a script. Returns () when the header is absent.
headers_has
Case-insensitive presence check for a response header by name. See headers_get.
http_get_yaml
http_rhai_register