pub struct UpstreamHttpProtocolOptions {
pub auto_sni: bool,
pub auto_san_validation: bool,
pub override_auto_sni_header: String,
}
Fields§
§auto_sni: bool
Set transport socket SNI <<https://en.wikipedia.org/wiki/Server_Name_Indication>
_> for new
upstream connections based on the downstream HTTP host/authority header or any other arbitrary
header when :ref:override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>
is set, as seen by the :ref:router filter <config_http_filters_router>
.
Does nothing if a filter before the http router filter sets the corresponding metadata.
auto_san_validation: bool
Automatic validate upstream presented certificate for new upstream connections based on the
downstream HTTP host/authority header or any other arbitrary header when :ref:override_auto_sni_header <envoy_v3_api_field_config.core.v3.UpstreamHttpProtocolOptions.override_auto_sni_header>
is set, as seen by the :ref:router filter <config_http_filters_router>
.
This field is intended to be set with auto_sni
field.
Does nothing if a filter before the http router filter sets the corresponding metadata.
override_auto_sni_header: String
An optional alternative to the host/authority header to be used for setting the SNI value.
It should be a valid downstream HTTP header, as seen by the
:ref:router filter <config_http_filters_router>
.
If unset, host/authority header will be used for populating the SNI. If the specified header
is not found or the value is empty, host/authority header will be used instead.
This field is intended to be set with auto_sni
and/or auto_san_validation
fields.
If none of these fields are set then setting this would be a no-op.
Does nothing if a filter before the http router filter sets the corresponding metadata.
Trait Implementations§
Source§impl Clone for UpstreamHttpProtocolOptions
impl Clone for UpstreamHttpProtocolOptions
Source§fn clone(&self) -> UpstreamHttpProtocolOptions
fn clone(&self) -> UpstreamHttpProtocolOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UpstreamHttpProtocolOptions
impl Debug for UpstreamHttpProtocolOptions
Source§impl Message for UpstreamHttpProtocolOptions
impl Message for UpstreamHttpProtocolOptions
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 UpstreamHttpProtocolOptions
impl Name for UpstreamHttpProtocolOptions
Source§const NAME: &'static str = "UpstreamHttpProtocolOptions"
const NAME: &'static str = "UpstreamHttpProtocolOptions"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "envoy.config.core.v3"
const PACKAGE: &'static str = "envoy.config.core.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.impl StructuralPartialEq for UpstreamHttpProtocolOptions
Auto Trait Implementations§
impl Freeze for UpstreamHttpProtocolOptions
impl RefUnwindSafe for UpstreamHttpProtocolOptions
impl Send for UpstreamHttpProtocolOptions
impl Sync for UpstreamHttpProtocolOptions
impl Unpin for UpstreamHttpProtocolOptions
impl UnwindSafe for UpstreamHttpProtocolOptions
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