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
Source§impl PartialEq for HttpProxyConfig
impl PartialEq for HttpProxyConfig
Source§fn eq(&self, other: &HttpProxyConfig) -> bool
fn eq(&self, other: &HttpProxyConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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