module
http
Transport-independent HTTP: integrations build Requests and parse Responses; the browser (weft::web::fetch) or a server (weft_api::send) does the sending.
Structs
Enums
Functions
encode
pub fn encode(s: &str) -> StringPercent-encode a query component (RFC 3986 unreserved characters pass).
error_message
pub fn error_message(body: &str) -> StringThe most useful message in an error body (message, error_description, error.message, FHIR issue[0].diagnostics, …), else the body itself.
trim_base
pub fn trim_base(url: &str) -> Stringhttps://x.y/ → https://x.y (so paths can be appended with /).
with_query
pub fn with_query(base: &str, pairs: &[(String, String)]) -> Stringbase plus ?k=v&… (pairs are encoded; empty values are kept).