pub struct Transport {
pub max_idle_conns_per_host: usize,
pub idle_conn_timeout: Option<Duration>,
pub dial_timeout: Option<Duration>,
pub tls_config: Option<Arc<ClientConfig>>,
pub proxy: Option<ProxyFn>,
/* private fields */
}Expand description
Default RoundTripper with per-host idle connection pooling.
Port of Go’s http.Transport.
Fields§
§max_idle_conns_per_host: usize§idle_conn_timeout: Option<Duration>§dial_timeout: Option<Duration>§tls_config: Option<Arc<ClientConfig>>TLS client configuration for HTTPS requests.
None uses the default Mozilla root store (via webpki-roots).
proxy: Option<ProxyFn>Proxy resolver. None connects directly. See proxy_from_environment.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Transport
impl !RefUnwindSafe for Transport
impl !UnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
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