pub struct HttpClientCli {Show 14 fields
pub http_client_timeout_connect: Duration,
pub http_client_timeout_read: Duration,
pub http_client_timeout: Duration,
pub http_client_pool_idle_timeout: Option<Duration>,
pub http_client_pool_idle_max: Option<usize>,
pub http_client_tcp_keepalive_delay: Option<Duration>,
pub http_client_tcp_keepalive_interval: Option<Duration>,
pub http_client_tcp_keepalive_retries: Option<u32>,
pub http_client_http2_keepalive: Option<Duration>,
pub http_client_http2_keepalive_timeout: Option<Duration>,
pub http_client_http2_keepalive_idle: bool,
pub http_client_http_version: HttpVersion,
pub http_client_happy_eyeballs_timeout: Duration,
pub http_client_tls_fixed_name: Option<String>,
}Expand description
HTTP Client CLI
Fields§
§http_client_timeout_connect: DurationTimeout for HTTP connection phase
http_client_timeout_read: DurationTimeout for a single read request
http_client_timeout: DurationTimeout for the whole HTTP call: this includes connecting, sending request, receiving response etc.
http_client_pool_idle_timeout: Option<Duration>How long to keep idle HTTP connections open. Default is 90s.
http_client_pool_idle_max: Option<usize>How many idle connections maximum to keep per-host. Default is unlimited.
http_client_tcp_keepalive_delay: Option<Duration>TCP Keepalive delay. It’s the time between when the connection became idle and when the keepalive packet is sent. If not specified - keepalives are disabled.
http_client_tcp_keepalive_interval: Option<Duration>TCP Keepalive interval. If the acknowledgement for the 1st keepalive wasn’t received - retry after this time. If not specified - use system default.
http_client_tcp_keepalive_retries: Option<u32>TCP Keepalive retries. If this many keepalives in a row weren’t acknowledged - close the connection. If not specified - use system default.
http_client_http2_keepalive: Option<Duration>HTTP2 Keepalive interval. If not specified - the keepalives are not sent.
http_client_http2_keepalive_timeout: Option<Duration>HTTP2 Keepalive timeout
http_client_http2_keepalive_idle: boolWhether to send HTTP2 Keepalives while connection is idle (no active streams)
http_client_http_version: HttpVersionWhich HTTP versions to use. Can be “http1”, “http2” or “all”. Defaults to “all”.
http_client_happy_eyeballs_timeout: DurationIf the target hostname resolves to both IPv6 and IPv4, we first try the preferred family and, if the connection isn’t established in this time, we in parallel try the other family. See RFC6555.
http_client_tls_fixed_name: Option<String>Fixed name to use when checking TLS certificates, instead of the host name.
Trait Implementations§
Source§impl Args for HttpClientCli
impl Args for HttpClientCli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for HttpClientCli
impl Clone for HttpClientCli
Source§impl Debug for HttpClientCli
impl Debug for HttpClientCli
impl Eq for HttpClientCli
Source§impl From<&HttpClientCli> for ClientOptions
impl From<&HttpClientCli> for ClientOptions
Source§fn from(c: &HttpClientCli) -> Self
fn from(c: &HttpClientCli) -> Self
Source§impl FromArgMatches for HttpClientCli
impl FromArgMatches for HttpClientCli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl PartialEq for HttpClientCli
impl PartialEq for HttpClientCli
impl StructuralPartialEq for HttpClientCli
Auto Trait Implementations§
impl Forget for HttpClientCli
impl Freeze for HttpClientCli
impl Move for HttpClientCli
impl RefUnwindSafe for HttpClientCli
impl Send for HttpClientCli
impl Sync for HttpClientCli
impl Unpin for HttpClientCli
impl UnsafeUnpin for HttpClientCli
impl UnwindSafe for HttpClientCli
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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§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> ⓘ
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> ⓘ
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