Skip to main content

Module network

Module network 

Source
Expand description

LocalNetwork — outbound requests from this process.

Two policies apply to a request the model chose, each on every hop of a redirect chain: the deployment’s allowlist, and staying off internal addresses (is_internal_address) unless the allowlist names the host. A request that asks for it (HttpRequest::public_only) gets the second whoever chose it, except on hops to the target it was sent to when it also says internal_target. A name is checked when the hop is sent and again by the resolver the connection itself uses, so a name that answers differently the second time still cannot reach inside.

Structs§

LocalNetwork
This process’s own network, under the deployment’s egress policy.

Functions§

configure_system_proxy
Whether this process’s own HTTP follows the environment’s proxy. Unset it does. The clients are process-wide and built on first use, so the answer has to be given before any request goes out and holds for the life of the process; a later, different answer is ignored.
install_tls_provider
reqwest is built with rustls-no-provider (ring, not its aws-lc default) and panics on the first client it builds if no process-wide provider is installed — including clients built inside dependencies such as rmcp.
proxy_variables_set
The names of the proxy variables set in the environment, never their values.
use_system_proxy_now