pub struct HttpProxyConfig {
pub proxy: Option<String>,
pub no_proxy_rules: Vec<String>,
pub ssl_verify: bool,
}Expand description
Outbound HTTP proxy and TLS verification policy.
Fields§
§proxy: Option<String>§no_proxy_rules: Vec<String>§ssl_verify: boolImplementations§
Source§impl HttpProxyConfig
impl HttpProxyConfig
Sourcepub fn new(
proxy: Option<String>,
no_proxy_rules: Vec<String>,
ssl_verify: bool,
) -> Result<Self, HttpConfigError>
pub fn new( proxy: Option<String>, no_proxy_rules: Vec<String>, ssl_verify: bool, ) -> Result<Self, HttpConfigError>
Validates proxy URL shape and no-proxy entries without exposing credentials.
Sourcepub fn from_overrides(
overrides: &NetworkEnvOverrides,
) -> Result<Self, HttpConfigError>
pub fn from_overrides( overrides: &NetworkEnvOverrides, ) -> Result<Self, HttpConfigError>
Applies proxy, no-proxy, and TLS verification environment overrides.
Sourcepub fn is_proxy_configured(&self) -> bool
pub fn is_proxy_configured(&self) -> bool
Returns whether outbound HTTP should use a proxy.
Trait Implementations§
Source§impl Clone for HttpProxyConfig
impl Clone for HttpProxyConfig
Source§fn clone(&self) -> HttpProxyConfig
fn clone(&self) -> HttpProxyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpProxyConfig
impl Debug for HttpProxyConfig
impl Eq for HttpProxyConfig
Source§impl PartialEq for HttpProxyConfig
impl PartialEq for HttpProxyConfig
impl StructuralPartialEq for HttpProxyConfig
Auto Trait Implementations§
impl Freeze for HttpProxyConfig
impl RefUnwindSafe for HttpProxyConfig
impl Send for HttpProxyConfig
impl Sync for HttpProxyConfig
impl Unpin for HttpProxyConfig
impl UnsafeUnpin for HttpProxyConfig
impl UnwindSafe for HttpProxyConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.