Skip to main content

forwarding_proxy

Function forwarding_proxy 

pub fn forwarding_proxy<Input>(input: &Input) -> Option<&ProxyAddress>
Available on crate features dns and http-backend and http and std and tcp only.
Expand description

The proxy which forwards input rather than tunnel it, if one does.

Forwarding is for plaintext HTTP only, it is the request’s to refuse with PlaintextHttpProxyMode::Tunnel, and an explicitly selected endpoint rules it out: a forwarded request names its origin, it does not reach a chosen address. A request pinning an HTTP version (TargetHttpVersion) is tunneled unless the proxy is known to speak that version, since a forwarded request travels in the version spoken to the proxy: an https:// proxy without a version may negotiate any.