Skip to main content

build_http_client

Function build_http_client 

Source
pub fn build_http_client() -> Result<Client>
Expand description

The shared HTTP client AppState carries, also used by the binary’s maintenance commands (--revoke-all-sessions) so they reach the network exactly as the serving app does.

.no_proxy() for the same reason as net::build_pinned_client and feed::build_client: ambient HTTP_PROXY would route this client’s traffic through a proxy that resolves hostnames itself, out from under the SSRF guard’s address checks.