Struct HeadParserConfig
pub struct HeadParserConfig { /* private fields */ }icap only.Expand description
Bounds and compatibility policy for ICAP head decoding.
Implementations§
§impl HeadParserConfig
impl HeadParserConfig
pub const fn new() -> HeadParserConfig
pub const fn new() -> HeadParserConfig
Construct the default bounded, strict parser configuration.
pub const fn compatible() -> HeadParserConfig
pub const fn compatible() -> HeadParserConfig
Construct the bounded, interoperable connection parser policy.
This accepts obsolete folding, unquoted service tags, missing tags on interim responses, and incomplete advisory capability metadata. Wire framing, line endings, bounds, and encapsulated offsets remain strict.
pub const fn with_max_bytes(self, max_bytes: usize) -> HeadParserConfig
pub const fn with_max_bytes(self, max_bytes: usize) -> HeadParserConfig
Set the maximum start-line and header-block size.
pub fn set_max_bytes(&mut self, max_bytes: usize) -> &mut HeadParserConfig
pub fn set_max_bytes(&mut self, max_bytes: usize) -> &mut HeadParserConfig
Set the maximum start-line and header-block size.
pub const fn with_interim_service_tag(
self,
policy: InterimServiceTag,
) -> HeadParserConfig
pub const fn with_interim_service_tag( self, policy: InterimServiceTag, ) -> HeadParserConfig
Set compatibility for a missing tag on interim 100 responses.
pub fn set_interim_service_tag(
&mut self,
policy: InterimServiceTag,
) -> &mut HeadParserConfig
pub fn set_interim_service_tag( &mut self, policy: InterimServiceTag, ) -> &mut HeadParserConfig
Set compatibility for a missing tag on interim 100 responses.
pub const fn with_header_folding(
self,
header_folding: HeaderFolding,
) -> HeadParserConfig
pub const fn with_header_folding( self, header_folding: HeaderFolding, ) -> HeadParserConfig
Set the obsolete line-folding policy.
pub fn set_header_folding(
&mut self,
header_folding: HeaderFolding,
) -> &mut HeadParserConfig
pub fn set_header_folding( &mut self, header_folding: HeaderFolding, ) -> &mut HeadParserConfig
Set the obsolete line-folding policy.
pub const fn with_composition_validation(
self,
composition_validation: CompositionValidation,
) -> HeadParserConfig
pub const fn with_composition_validation( self, composition_validation: CompositionValidation, ) -> HeadParserConfig
Set whether parsing also validates message composition.
pub fn set_composition_validation(
&mut self,
composition_validation: CompositionValidation,
) -> &mut HeadParserConfig
pub fn set_composition_validation( &mut self, composition_validation: CompositionValidation, ) -> &mut HeadParserConfig
Set whether parsing also validates message composition.
pub const fn with_service_tag_syntax(
self,
service_tag_syntax: ServiceTagSyntax,
) -> HeadParserConfig
pub const fn with_service_tag_syntax( self, service_tag_syntax: ServiceTagSyntax, ) -> HeadParserConfig
Set the accepted service tag syntax.
pub fn set_service_tag_syntax(
&mut self,
service_tag_syntax: ServiceTagSyntax,
) -> &mut HeadParserConfig
pub fn set_service_tag_syntax( &mut self, service_tag_syntax: ServiceTagSyntax, ) -> &mut HeadParserConfig
Set the accepted service tag syntax.
pub const fn header_folding(self) -> HeaderFolding
pub const fn header_folding(self) -> HeaderFolding
Return the obsolete line-folding policy.
pub const fn composition_validation(self) -> CompositionValidation
pub const fn composition_validation(self) -> CompositionValidation
Return whether parsing also validates message composition.
pub const fn service_tag_syntax(self) -> ServiceTagSyntax
pub const fn service_tag_syntax(self) -> ServiceTagSyntax
Return the accepted service tag syntax.
pub const fn interim_service_tag(self) -> InterimServiceTag
pub const fn interim_service_tag(self) -> InterimServiceTag
Return the interim-response service-tag policy.
Trait Implementations§
§impl Clone for HeadParserConfig
impl Clone for HeadParserConfig
§fn clone(&self) -> HeadParserConfig
fn clone(&self) -> HeadParserConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HeadParserConfig
§impl Debug for HeadParserConfig
impl Debug for HeadParserConfig
§impl Default for HeadParserConfig
impl Default for HeadParserConfig
§fn default() -> HeadParserConfig
fn default() -> HeadParserConfig
impl Eq for HeadParserConfig
§impl PartialEq for HeadParserConfig
impl PartialEq for HeadParserConfig
impl StructuralPartialEq for HeadParserConfig
Auto Trait Implementations§
impl Freeze for HeadParserConfig
impl RefUnwindSafe for HeadParserConfig
impl Send for HeadParserConfig
impl Sync for HeadParserConfig
impl Unpin for HeadParserConfig
impl UnsafeUnpin for HeadParserConfig
impl UnwindSafe for HeadParserConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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