Struct attohttpc::ProxySettings
source · pub struct ProxySettings { /* private fields */ }
Expand description
Contains proxy settings and utilities to find which proxy to use for a given URL.
Implementations§
source§impl ProxySettings
impl ProxySettings
sourcepub fn builder() -> ProxySettingsBuilder
pub fn builder() -> ProxySettingsBuilder
Get a new builder for ProxySettings.
sourcepub fn from_env() -> ProxySettings
pub fn from_env() -> ProxySettings
Get the proxy configuration from the environment using the curl
/Unix proxy conventions.
Only ALL_PROXY
, HTTP_PROXY
, HTTPS_PROXY
and NO_PROXY
are supported.
Proxies can be disabled on all requests by setting NO_PROXY
to *
, similar to curl
.
HTTP_PROXY
or HTTPS_PROXY
take precedence over values set by ALL_PROXY
for their
respective schemes.
Trait Implementations§
source§impl Clone for ProxySettings
impl Clone for ProxySettings
source§fn clone(&self) -> ProxySettings
fn clone(&self) -> ProxySettings
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 moreAuto Trait Implementations§
impl Freeze for ProxySettings
impl RefUnwindSafe for ProxySettings
impl Send for ProxySettings
impl Sync for ProxySettings
impl Unpin for ProxySettings
impl UnwindSafe for ProxySettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more