Struct attohttpc::ProxySettingsBuilder
source · pub struct ProxySettingsBuilder { /* private fields */ }
Expand description
Utility to build ProxySettings easily.
Implementations§
source§impl ProxySettingsBuilder
impl ProxySettingsBuilder
sourcepub fn http_proxy<V>(self, val: V) -> Selfwhere
V: Into<Option<Url>>,
pub fn http_proxy<V>(self, val: V) -> Selfwhere
V: Into<Option<Url>>,
Set the proxy for http requests.
sourcepub fn https_proxy<V>(self, val: V) -> Selfwhere
V: Into<Option<Url>>,
pub fn https_proxy<V>(self, val: V) -> Selfwhere
V: Into<Option<Url>>,
Set the proxy for https requests.
sourcepub fn add_no_proxy_host(self, pattern: impl AsRef<str>) -> Self
pub fn add_no_proxy_host(self, pattern: impl AsRef<str>) -> Self
Add a hostname pattern to ignore when finding the proxy to use for a URL.
For instance mycompany.local
will make requests with the hostname mycompany.local
not go trough the proxy.
sourcepub fn build(self) -> ProxySettings
pub fn build(self) -> ProxySettings
Build the settings.
Trait Implementations§
source§impl Clone for ProxySettingsBuilder
impl Clone for ProxySettingsBuilder
source§fn clone(&self) -> ProxySettingsBuilder
fn clone(&self) -> ProxySettingsBuilder
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 more