Skip to main content

Module proxy

Module proxy 

Source
Available on crate feature proxy only.
Expand description

Shared HTTP proxy options and endpoint validation (proxy feature).

system-proxy adds OriginProxy for construction-time environment/native discovery. reqwest adds its configure_reqwest adapter. A resolved policy belongs to one HTTP(S) origin; it must not configure a multi-origin client. hyper adds proxy_for_hyper, including the effective bypass decision. Native bypass grammars remain separate from NO_PROXY syntax.

Structs§

OriginProxysystem-proxy
A proxy policy resolved for exactly one HTTP(S) origin (system-proxy).
ProxyOptions
Client-local proxy selection and bypass policy.

Enums§

Error
Proxy configuration failures, separate from HTTP integrity failures. Diagnostics name settings or fixed reasons, never endpoint contents.
ProxyMode
How an HTTP client selects its proxy endpoint.

Functions§

parse_endpoint
Validates an explicit HTTP(S)/SOCKS proxy URL or bare host[:port].