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) -> Self
pub fn http_proxy<V>(self, val: V) -> Self
Set the proxy for http requests.
Sourcepub fn https_proxy<V>(self, val: V) -> Self
pub fn https_proxy<V>(self, val: V) -> Self
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 duplicate 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 ProxySettingsBuilder
impl Debug for ProxySettingsBuilder
Auto Trait Implementations§
impl Freeze for ProxySettingsBuilder
impl RefUnwindSafe for ProxySettingsBuilder
impl Send for ProxySettingsBuilder
impl Sync for ProxySettingsBuilder
impl Unpin for ProxySettingsBuilder
impl UnwindSafe for ProxySettingsBuilder
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