pub struct ClientOptions {Show 17 fields
pub timeout_connect: Duration,
pub timeout_read: Duration,
pub timeout: Duration,
pub pool_idle_timeout: Option<Duration>,
pub pool_idle_max: Option<usize>,
pub tcp_keepalive_delay: Option<Duration>,
pub tcp_keepalive_interval: Option<Duration>,
pub tcp_keepalive_retries: Option<u32>,
pub http2_keepalive: Option<Duration>,
pub http2_keepalive_timeout: Option<Duration>,
pub http2_keepalive_idle: bool,
pub happy_eyeballs_timeout: Duration,
pub http_version: HttpVersion,
pub user_agent: String,
pub tls_config: Option<ClientConfig>,
pub tls_fixed_name: Option<String>,
pub dns_overrides: Vec<(String, SocketAddr)>,
}Expand description
HTTP client options
Fields§
§timeout_connect: Duration§timeout_read: Duration§timeout: Duration§pool_idle_timeout: Option<Duration>§pool_idle_max: Option<usize>§tcp_keepalive_delay: Option<Duration>§tcp_keepalive_interval: Option<Duration>§tcp_keepalive_retries: Option<u32>§http2_keepalive: Option<Duration>§http2_keepalive_timeout: Option<Duration>§http2_keepalive_idle: bool§happy_eyeballs_timeout: Duration§http_version: HttpVersion§user_agent: String§tls_config: Option<ClientConfig>§tls_fixed_name: Option<String>§dns_overrides: Vec<(String, SocketAddr)>Trait Implementations§
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§impl Debug for ClientOptions
impl Debug for ClientOptions
Source§impl Default for ClientOptions
impl Default for ClientOptions
Source§impl From<&HttpClientCli> for ClientOptions
impl From<&HttpClientCli> for ClientOptions
Source§fn from(c: &HttpClientCli) -> Self
fn from(c: &HttpClientCli) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientOptions
impl !UnwindSafe for ClientOptions
impl Forget for ClientOptions
impl Freeze for ClientOptions
impl Move for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnsafeUnpin for ClientOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more