Struct H2ClientContextParams
pub struct H2ClientContextParams {
pub headers_pseudo_order: Option<PseudoHeaderOrder>,
pub early_frames: Option<EarlyFrameCapture>,
pub init_stream_window_size: Option<u32>,
pub init_connection_window_size: Option<u32>,
pub keep_alive_interval: Option<Duration>,
pub keep_alive_timeout: Option<Duration>,
pub keep_alive_while_idle: Option<bool>,
pub max_header_list_size: Option<u32>,
pub adaptive_window: Option<bool>,
}Expand description
Optional parameters that can be set in the Extensions of a (h2) request
to customise the connection of the h2 connection.
Can be used by Http connector services, especially in the context of proxies, where there might not be one static config that is to be applied to all client connections.
Fields§
§headers_pseudo_order: Option<PseudoHeaderOrder>Pseudo order of the headers stream
early_frames: Option<EarlyFrameCapture>Early frames to be applied first
init_stream_window_size: Option<u32>The SETTINGS_INITIAL_WINDOW_SIZE option for HTTP2
stream-level flow control.
init_connection_window_size: Option<u32>The max connection-level flow control for HTTP2.
keep_alive_interval: Option<Duration>An interval for HTTP2 Ping frames should be sent to keep a connection alive.
keep_alive_timeout: Option<Duration>A timeout for receiving an acknowledgement of the keep-alive ping.
keep_alive_while_idle: Option<bool>Whether HTTP2 keep-alive should apply while the connection is idle.
max_header_list_size: Option<u32>The max size of received header frames.
adaptive_window: Option<bool>Whether to use an adaptive flow control.
Trait Implementations§
§impl Clone for H2ClientContextParams
impl Clone for H2ClientContextParams
§fn clone(&self) -> H2ClientContextParams
fn clone(&self) -> H2ClientContextParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for H2ClientContextParams
impl Debug for H2ClientContextParams
§impl Default for H2ClientContextParams
impl Default for H2ClientContextParams
§fn default() -> H2ClientContextParams
fn default() -> H2ClientContextParams
Auto Trait Implementations§
impl Freeze for H2ClientContextParams
impl RefUnwindSafe for H2ClientContextParams
impl Send for H2ClientContextParams
impl Sync for H2ClientContextParams
impl Unpin for H2ClientContextParams
impl UnwindSafe for H2ClientContextParams
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more