Struct nydus_api::config::HttpProxyConfig
source · pub struct HttpProxyConfig {
pub addr: String,
pub path: String,
pub skip_verify: bool,
pub timeout: u32,
pub connect_timeout: u32,
pub retry_limit: u8,
pub proxy: ProxyConfig,
pub mirrors: Vec<MirrorConfig>,
}Expand description
Http proxy configuration information to access blobs.
Fields§
§addr: StringAddress of http proxy server, like http://xxx.xxx or https://xxx.xxx or /path/to/unix.sock.
path: StringPath to access the blobs, like /<_namespace>/<_repo>/blobs.
If the http proxy server is over unix socket, this field will be ignored.
skip_verify: boolSkip SSL certificate validation for HTTPS scheme.
timeout: u32Drop the read request once http request timeout, in seconds.
connect_timeout: u32Drop the read request once http connection timeout, in seconds.
retry_limit: u8Retry count when read request failed.
proxy: ProxyConfigEnable HTTP proxy for the read request.
mirrors: Vec<MirrorConfig>Enable mirrors for the read request.
Trait Implementations§
source§impl Clone for HttpProxyConfig
impl Clone for HttpProxyConfig
source§fn clone(&self) -> HttpProxyConfig
fn clone(&self) -> HttpProxyConfig
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 moresource§impl Debug for HttpProxyConfig
impl Debug for HttpProxyConfig
source§impl Default for HttpProxyConfig
impl Default for HttpProxyConfig
source§fn default() -> HttpProxyConfig
fn default() -> HttpProxyConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpProxyConfig
impl<'de> Deserialize<'de> for HttpProxyConfig
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
source§impl PartialEq<HttpProxyConfig> for HttpProxyConfig
impl PartialEq<HttpProxyConfig> for HttpProxyConfig
source§fn eq(&self, other: &HttpProxyConfig) -> bool
fn eq(&self, other: &HttpProxyConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.