Re-exports§
pub use client::clients_reqwest::ReqwestClient;pub use client::clients_reqwest::ReqwestClientLeastLoaded;pub use client::clients_reqwest::ReqwestClientRoundRobin;pub use server::Server;pub use server::ServerBuilder;
Modules§
Enums§
- UrlTo
UriError - Error that might happen during Url to Uri conversion
Functions§
- calc_
headers_ size - Calculate very approximate HTTP request/response headers size in bytes. More or less accurate only for http/1.1 since in h2 headers are in HPACK-compressed. But it seems there’s no better way.
- extract_
authority - Attempts to extract host from
X-Forwarded-Hostheader, HTTP2 “authority” pseudo-header or from HTTP/1.1Hostheader (in this order of preference) - extract_
host - Attempts to extract “host” from “host:port” format. Host can be either FQDN or IPv4/IPv6 address.
- http_
method - Get a static string representing given HTTP method
- http_
version - Get a static string representing given HTTP version
- redirect_
to_ https - Redirects any request to an HTTPS scheme
- url_
to_ uri - Converts
UrltoUri