pub struct CustomInlineHeader {
pub inline_header_name: String,
pub inline_header_type: i32,
}
Expand description
Used to specify the header that needs to be registered as an inline header.
If request or response contain multiple headers with the same name and the header name is registered as an inline header. Then multiple headers will be folded into one, and multiple header values will be concatenated by a suitable delimiter. The delimiter is generally a comma.
For example, if ‘foo’ is registered as an inline header, and the headers contains the following two headers:
.. code-block:: text
foo: bar foo: eep
Then they will eventually be folded into:
.. code-block:: text
foo: bar, eep
Inline headers provide O(1) search performance, but each inline header imposes an additional memory overhead on all instances of the corresponding type of HeaderMap or TrailerMap.
Fields§
§inline_header_name: String
The name of the header that is expected to be set as the inline header.
inline_header_type: i32
The type of the header that is expected to be set as the inline header.
Implementations§
Source§impl CustomInlineHeader
impl CustomInlineHeader
Sourcepub fn inline_header_type(&self) -> InlineHeaderType
pub fn inline_header_type(&self) -> InlineHeaderType
Returns the enum value of inline_header_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_inline_header_type(&mut self, value: InlineHeaderType)
pub fn set_inline_header_type(&mut self, value: InlineHeaderType)
Sets inline_header_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for CustomInlineHeader
impl Clone for CustomInlineHeader
Source§fn clone(&self) -> CustomInlineHeader
fn clone(&self) -> CustomInlineHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomInlineHeader
impl Debug for CustomInlineHeader
Source§impl Default for CustomInlineHeader
impl Default for CustomInlineHeader
Source§impl Message for CustomInlineHeader
impl Message for CustomInlineHeader
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for CustomInlineHeader
impl Name for CustomInlineHeader
Source§const NAME: &'static str = "CustomInlineHeader"
const NAME: &'static str = "CustomInlineHeader"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "envoy.config.bootstrap.v3"
const PACKAGE: &'static str = "envoy.config.bootstrap.v3"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for CustomInlineHeader
impl PartialEq for CustomInlineHeader
impl StructuralPartialEq for CustomInlineHeader
Auto Trait Implementations§
impl Freeze for CustomInlineHeader
impl RefUnwindSafe for CustomInlineHeader
impl Send for CustomInlineHeader
impl Sync for CustomInlineHeader
impl Unpin for CustomInlineHeader
impl UnwindSafe for CustomInlineHeader
Blanket Implementations§
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request