pub struct Proxy { /* private fields */ }Expand description
A HTTP / Socks proxy for ureq.
Implementations§
Methods from Deref<Target = Proxy>§
Sourcepub fn protocol(&self) -> ProxyProtocol
pub fn protocol(&self) -> ProxyProtocol
The configured protocol.
Sourcepub fn is_from_env(&self) -> bool
pub fn is_from_env(&self) -> bool
Whether this proxy setting was created manually or from environment variables.
Sourcepub fn resolve_target(&self) -> bool
pub fn resolve_target(&self) -> bool
Whether to resolve target locally before calling the proxy.
true- resolve the DNS before calling proxy.false- send the target host to the proxy and let it resolve.
Defaults to false for all proxies protocols except SOCKS4. I.e. the normal
case is to let the proxy resolve the target host.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proxy
impl<'de> Deserialize<'de> for Proxy
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Proxy
impl StructuralPartialEq for Proxy
Auto Trait Implementations§
impl Freeze for Proxy
impl RefUnwindSafe for Proxy
impl Send for Proxy
impl Sync for Proxy
impl Unpin for Proxy
impl UnsafeUnpin for Proxy
impl UnwindSafe for Proxy
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