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§
- Rest
Client - Reqwest-based HTTP client with builder-style header / TLS configuration.
Enums§
Functions§
- headers_
get - Case-insensitive lookup of a single response header by name.
headersis the opaqueVec<(String, String)>returned as theheadersfield ofget/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