pub struct HttpServerCli {Show 20 fields
pub http_server_backlog: u32,
pub http_server_max_requests_per_conn: Option<u64>,
pub http_server_read_timeout: Duration,
pub http_server_write_timeout: Duration,
pub http_server_idle_timeout: Option<Duration>,
pub http_server_tls_handshake_timeout: Duration,
pub http_server_http1_header_read_timeout: Duration,
pub http_server_body_read_timeout: Duration,
pub http_server_http2_max_streams: u32,
pub http_server_http2_keepalive_interval: Option<Duration>,
pub http_server_http2_keepalive_timeout: Duration,
pub http_server_tcp_keepalive_delay: Option<Duration>,
pub http_server_tcp_keepalive_interval: Option<Duration>,
pub http_server_tcp_keepalive_retries: Option<u32>,
pub http_server_tcp_mss: Option<u32>,
pub http_server_tls_session_cache_size: u64,
pub http_server_tls_session_cache_tti: Duration,
pub http_server_tls_ticket_lifetime: Duration,
pub http_server_grace_period: Duration,
pub http_server_proxy_protocol_mode: ProxyProtocolMode,
}Expand description
HTTP Server CLI
Fields§
§http_server_backlog: u32Backlog of incoming connections to set on the listening socket
http_server_max_requests_per_conn: Option<u64>Maximum number of HTTP requests to serve over a single connection. After this number is reached the connection is gracefully closed.
http_server_read_timeout: DurationTimeout for network read calls. If the read call takes longer than that - the connection is closed. This effectively closes idle HTTP/1.1 connections.
http_server_write_timeout: DurationTimeout for network write calls. If the write call takes longer than that - the connection is closed.
http_server_idle_timeout: Option<Duration>Idle timeout for connections. If no requests are executed during this period - the connections is closed. Mostly needed for HTTP/2 where the read timeout sometimes cannot kick in due to PING frames and other non-request activity.
http_server_tls_handshake_timeout: DurationTLS handshake timeout
http_server_http1_header_read_timeout: DurationFor how long to wait for the client to send headers.
Applies only to HTTP1 connections.
Should be set lower than the global http_server_read_timeout.
http_server_body_read_timeout: DurationFor how long to wait for the client to send full request body.
http_server_http2_max_streams: u32Maximum number of HTTP2 streams that the client is allowed to create inside a single connection
http_server_http2_keepalive_interval: Option<Duration>Keepalive interval for HTTP2 connections
http_server_http2_keepalive_timeout: DurationKeepalive timeout for HTTP2 connections
http_server_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_server_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_server_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_server_tcp_mss: Option<u32>TCP MSS option. Limits the TCP segment size, can be used to work around PMTU issues.
http_server_tls_session_cache_size: u64Maximum size of cache to store TLS sessions in memory
http_server_tls_session_cache_tti: DurationMaximum time that a TLS session key can stay in cache without being requested (Time-to-Idle)
http_server_tls_ticket_lifetime: DurationLifetime of a TLS1.3 ticket, due to key rotation the actual lifetime will be twice than this
http_server_grace_period: DurationHow long to wait for the existing connections to finish before shutting down.
Also applies to the recycling of connections with http_server_max_requests_per_conn option.
http_server_proxy_protocol_mode: ProxyProtocolModeWhether to expect connections with Proxy Protocol v2. If the connection contains the Proxy Protocol v2 header - then we will use the client’s IP from it instead of TCP endpoint. Can be “off”, “enabled” or “forced”. If “enabled” - we’ll support connections with or without Proxy Protocol. If “forced” then connections without a Proxy Protocol header will not be accepted.
Trait Implementations§
Source§impl Args for HttpServerCli
impl Args for HttpServerCli
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 HttpServerCli
impl Clone for HttpServerCli
Source§impl Debug for HttpServerCli
impl Debug for HttpServerCli
impl Eq for HttpServerCli
Source§impl From<&HttpServerCli> for ServerOptions
impl From<&HttpServerCli> for ServerOptions
Source§fn from(c: &HttpServerCli) -> Self
fn from(c: &HttpServerCli) -> Self
Source§impl From<&HttpServerCli> for TlsOptions
impl From<&HttpServerCli> for TlsOptions
Source§fn from(c: &HttpServerCli) -> Self
fn from(c: &HttpServerCli) -> Self
Source§impl FromArgMatches for HttpServerCli
impl FromArgMatches for HttpServerCli
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 HttpServerCli
impl PartialEq for HttpServerCli
impl StructuralPartialEq for HttpServerCli
Auto Trait Implementations§
impl Forget for HttpServerCli
impl Freeze for HttpServerCli
impl Move for HttpServerCli
impl RefUnwindSafe for HttpServerCli
impl Send for HttpServerCli
impl Sync for HttpServerCli
impl Unpin for HttpServerCli
impl UnsafeUnpin for HttpServerCli
impl UnwindSafe for HttpServerCli
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