Structs§
- Attempt
Event - One attempt about to start, passed to
ClientConfig::on_attempt.urlhas configured and per-request secret values replaced by[redacted]and any query or userinfo removed. - Client
- Client
Config - Proxy
Diagnostic - What a client knows about the proxy it uses, for diagnostics. Credentials are never part of it.
- Request
- Response
- Response
Head - Status line and headers of a response whose body was not read; see
Client::send_headers. - Retry
Event - One retry decision, reported to
ClientConfig::on_retry.urlandreasonhave configured and per-request secret values replaced by[redacted]. - Stream
Response
Enums§
- Method
- Proxy
Mode - How requests reach the network.
- Proxy
Mode Used - Which proxy source a client actually ended up with, as opposed to the
ProxyModeit was asked for. Differs from the request only forProxyMode::Systemwhen the operating system configures automatic detection and nothing else. - Trust
Roots - Which certificate roots verify a server’s TLS certificate.
Functions§
- form_
encode - percent_
decode - percent_
decode_ component - Inverse of
percent_encode_component: decodes%XXescapes and leaves+as written. An escape that is not two hex digits is kept as written; invalid UTF-8 is replaced. - percent_
encode - Percent-encode for
application/x-www-form-urlencoded/ URL query values. - percent_
encode_ component - RFC 3986 percent-encoding for one URL path segment or query value. Unreserved bytes
(
A-Z a-z 0-9 - . _ ~) are kept, a space becomes%20(never+), and every other byte becomes%XX. Usepercent_encodeonly forapplication/x-www-form-urlencodedbodies.