Struct ConnectionOptions
pub struct ConnectionOptions { /* private fields */ }icap and std only.Expand description
Bounds and parser policy for an ICAP connection.
Implementations§
§impl ConnectionOptions
impl ConnectionOptions
pub const fn new() -> ConnectionOptions
pub const fn new() -> ConnectionOptions
Construct bounded, interoperable connection options.
pub const fn strict() -> ConnectionOptions
pub const fn strict() -> ConnectionOptions
Construct bounded connection options with strict RFC validation.
pub const fn with_head_parser(self, head: HeadParserConfig) -> ConnectionOptions
pub const fn with_head_parser(self, head: HeadParserConfig) -> ConnectionOptions
Set the ICAP head and trailer parser policy.
pub fn set_head_parser(
&mut self,
head: HeadParserConfig,
) -> &mut ConnectionOptions
pub fn set_head_parser( &mut self, head: HeadParserConfig, ) -> &mut ConnectionOptions
Set the ICAP head and trailer parser policy.
pub const fn with_max_headers(self, max_headers: usize) -> ConnectionOptions
pub const fn with_max_headers(self, max_headers: usize) -> ConnectionOptions
Set the maximum number of ICAP headers or HTTP trailers.
pub fn set_max_headers(&mut self, max_headers: usize) -> &mut ConnectionOptions
pub fn set_max_headers(&mut self, max_headers: usize) -> &mut ConnectionOptions
Set the maximum number of ICAP headers or HTTP trailers.
pub const fn with_max_chunk_line_bytes(
self,
max_bytes: usize,
) -> ConnectionOptions
pub const fn with_max_chunk_line_bytes( self, max_bytes: usize, ) -> ConnectionOptions
Set the maximum encoded chunk-size line length.
pub fn set_max_chunk_line_bytes(
&mut self,
max_bytes: usize,
) -> &mut ConnectionOptions
pub fn set_max_chunk_line_bytes( &mut self, max_bytes: usize, ) -> &mut ConnectionOptions
Set the maximum encoded chunk-size line length.
pub const fn with_max_encapsulated_header_bytes(
self,
max_bytes: usize,
) -> ConnectionOptions
pub const fn with_max_encapsulated_header_bytes( self, max_bytes: usize, ) -> ConnectionOptions
Set the maximum combined encapsulated HTTP head length.
pub fn set_max_encapsulated_header_bytes(
&mut self,
max_bytes: usize,
) -> &mut ConnectionOptions
pub fn set_max_encapsulated_header_bytes( &mut self, max_bytes: usize, ) -> &mut ConnectionOptions
Set the maximum combined encapsulated HTTP head length.
pub const fn with_read_buffer_bytes(self, bytes: usize) -> ConnectionOptions
pub const fn with_read_buffer_bytes(self, bytes: usize) -> ConnectionOptions
Set the target socket read-buffer increment.
pub fn set_read_buffer_bytes(&mut self, bytes: usize) -> &mut ConnectionOptions
pub fn set_read_buffer_bytes(&mut self, bytes: usize) -> &mut ConnectionOptions
Set the target socket read-buffer increment.
pub const fn head_parser(self) -> HeadParserConfig
pub const fn head_parser(self) -> HeadParserConfig
Return the ICAP head and trailer parser policy.
pub const fn max_headers(self) -> usize
pub const fn max_headers(self) -> usize
Return the maximum number of decoded header fields.
pub const fn max_chunk_line_bytes(self) -> usize
pub const fn max_chunk_line_bytes(self) -> usize
Return the maximum encoded chunk-size line length.
pub const fn max_encapsulated_header_bytes(self) -> usize
pub const fn max_encapsulated_header_bytes(self) -> usize
Return the encapsulated HTTP head bound.
pub const fn read_buffer_bytes(self) -> usize
pub const fn read_buffer_bytes(self) -> usize
Return the target socket read-buffer increment.
Trait Implementations§
§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
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 ConnectionOptions
§impl Debug for ConnectionOptions
impl Debug for ConnectionOptions
§impl Default for ConnectionOptions
impl Default for ConnectionOptions
§fn default() -> ConnectionOptions
fn default() -> ConnectionOptions
impl Eq for ConnectionOptions
§impl PartialEq for ConnectionOptions
impl PartialEq for ConnectionOptions
impl StructuralPartialEq for ConnectionOptions
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnsafeUnpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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