Struct HttpPeekOptions
pub struct HttpPeekOptions { /* private fields */ }net only.Expand description
Options of peek_http_input_with_options.
Implementations§
§impl HttpPeekOptions
impl HttpPeekOptions
pub fn new() -> HttpPeekOptions
pub fn new() -> HttpPeekOptions
Options using the defaults.
pub fn with_config(self, config: HttpPeekConfig) -> HttpPeekOptions
pub fn with_config(self, config: HttpPeekConfig) -> HttpPeekOptions
Set the resource limits of the ingress peek.
pub fn set_config(&mut self, config: HttpPeekConfig) -> &mut HttpPeekOptions
pub fn set_config(&mut self, config: HttpPeekConfig) -> &mut HttpPeekOptions
Set the resource limits of the ingress peek.
pub fn with_policy(self, policy: PeekPolicy) -> HttpPeekOptions
pub fn with_policy(self, policy: PeekPolicy) -> HttpPeekOptions
Set the PeekPolicy applied to cutoffs.
pub fn set_policy(&mut self, policy: PeekPolicy) -> &mut HttpPeekOptions
pub fn set_policy(&mut self, policy: PeekPolicy) -> &mut HttpPeekOptions
Set the PeekPolicy applied to cutoffs.
pub fn maybe_with_scope(self, scope: Option<WeakScope>) -> HttpPeekOptions
pub fn maybe_with_scope(self, scope: Option<WeakScope>) -> HttpPeekOptions
Set the scope that can cut the peek short, usually the scope the
input runs in, see scope_context.
pub fn maybe_set_scope(
&mut self,
scope: Option<WeakScope>,
) -> &mut HttpPeekOptions
pub fn maybe_set_scope( &mut self, scope: Option<WeakScope>, ) -> &mut HttpPeekOptions
Set the scope that can cut the peek short, usually the scope the
input runs in, see scope_context.
pub fn with_scope(self, scope: WeakScope) -> HttpPeekOptions
pub fn with_scope(self, scope: WeakScope) -> HttpPeekOptions
Set the scope that can cut the peek short, usually the scope the
input runs in, see scope_context.
pub fn set_scope(&mut self, scope: WeakScope) -> &mut HttpPeekOptions
pub fn set_scope(&mut self, scope: WeakScope) -> &mut HttpPeekOptions
Set the scope that can cut the peek short, usually the scope the
input runs in, see scope_context.
pub fn without_scope(self) -> HttpPeekOptions
pub fn without_scope(self) -> HttpPeekOptions
Set the scope that can cut the peek short, usually the scope the
input runs in, see scope_context.
pub fn unset_scope(&mut self) -> &mut HttpPeekOptions
pub fn unset_scope(&mut self) -> &mut HttpPeekOptions
Set the scope that can cut the peek short, usually the scope the
input runs in, see scope_context.
pub fn with_egress(self, egress: HttpEgressPredicate) -> HttpPeekOptions
pub fn with_egress(self, egress: HttpEgressPredicate) -> HttpPeekOptions
Set the predicate judging what the server sends while the client is silent.
pub fn set_egress(
&mut self,
egress: HttpEgressPredicate,
) -> &mut HttpPeekOptions
pub fn set_egress( &mut self, egress: HttpEgressPredicate, ) -> &mut HttpPeekOptions
Set the predicate judging what the server sends while the client is silent.
pub fn with_max_egress_peek_size(
self,
max_egress_peek_size: NonZero<usize>,
) -> HttpPeekOptions
pub fn with_max_egress_peek_size( self, max_egress_peek_size: NonZero<usize>, ) -> HttpPeekOptions
Set the byte limit for peeking the egress.
pub fn set_max_egress_peek_size(
&mut self,
max_egress_peek_size: NonZero<usize>,
) -> &mut HttpPeekOptions
pub fn set_max_egress_peek_size( &mut self, max_egress_peek_size: NonZero<usize>, ) -> &mut HttpPeekOptions
Set the byte limit for peeking the egress.
Trait Implementations§
§impl Clone for HttpPeekOptions
impl Clone for HttpPeekOptions
§fn clone(&self) -> HttpPeekOptions
fn clone(&self) -> HttpPeekOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for HttpPeekOptions
impl Debug for HttpPeekOptions
§impl Default for HttpPeekOptions
impl Default for HttpPeekOptions
§fn default() -> HttpPeekOptions
fn default() -> HttpPeekOptions
Auto Trait Implementations§
impl !RefUnwindSafe for HttpPeekOptions
impl !UnwindSafe for HttpPeekOptions
impl Forget for HttpPeekOptions
impl Freeze for HttpPeekOptions
impl Move for HttpPeekOptions
impl Send for HttpPeekOptions
impl Sync for HttpPeekOptions
impl Unpin for HttpPeekOptions
impl UnsafeUnpin for HttpPeekOptions
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
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,
§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