Struct system_proxy::env::EnvProxyResolver
source · pub struct EnvProxyResolver { /* private fields */ }Expand description
Resolve a proxy against a static set of configuration.
Implementations§
source§impl EnvProxyResolver
impl EnvProxyResolver
sourcepub fn from_curl_env() -> Self
pub fn from_curl_env() -> Self
Get proxy rules from environment variables used by curl.
See EnvProxies::from_curl_env() and EnvNoProxy::from_curl_env() for details of
the variables used and their formats.
This function interprets the environment as does curl, per its documentation, see
curl(1).
$http_proxy and $https_proxy and their uppercase variants denote the proxy URL for the
given host. The lowercase variant has priority; unlike curl this function also understands
$HTTP_PROXY.
IP addresses are matched as if they were host names, i.e. as strings. IPv6 addresses
should be given without enclosing brackets.
See curl(1) for details of curl’s proxy settings.
Trait Implementations§
source§impl Clone for EnvProxyResolver
impl Clone for EnvProxyResolver
source§fn clone(&self) -> EnvProxyResolver
fn clone(&self) -> EnvProxyResolver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EnvProxyResolver
impl Debug for EnvProxyResolver
source§impl PartialEq<EnvProxyResolver> for EnvProxyResolver
impl PartialEq<EnvProxyResolver> for EnvProxyResolver
source§fn eq(&self, other: &EnvProxyResolver) -> bool
fn eq(&self, other: &EnvProxyResolver) -> bool
This method tests for
self and other values to be equal, and is used
by ==.