#[non_exhaustive]pub struct HttpHeaderConditionConfigBuilder { /* private fields */ }
Expand description
A builder for HttpHeaderConditionConfig
.
Implementations§
source§impl HttpHeaderConditionConfigBuilder
impl HttpHeaderConditionConfigBuilder
sourcepub fn http_header_name(self, input: impl Into<String>) -> Self
pub fn http_header_name(self, input: impl Into<String>) -> Self
The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig
to specify a host header condition.
sourcepub fn set_http_header_name(self, input: Option<String>) -> Self
pub fn set_http_header_name(self, input: Option<String>) -> Self
The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig
to specify a host header condition.
sourcepub fn get_http_header_name(&self) -> &Option<String>
pub fn get_http_header_name(&self) -> &Option<String>
The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig
to specify a host header condition.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
sourcepub fn build(self) -> HttpHeaderConditionConfig
pub fn build(self) -> HttpHeaderConditionConfig
Consumes the builder and constructs a HttpHeaderConditionConfig
.
Trait Implementations§
source§impl Clone for HttpHeaderConditionConfigBuilder
impl Clone for HttpHeaderConditionConfigBuilder
source§fn clone(&self) -> HttpHeaderConditionConfigBuilder
fn clone(&self) -> HttpHeaderConditionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HttpHeaderConditionConfigBuilder
impl Default for HttpHeaderConditionConfigBuilder
source§fn default() -> HttpHeaderConditionConfigBuilder
fn default() -> HttpHeaderConditionConfigBuilder
source§impl PartialEq for HttpHeaderConditionConfigBuilder
impl PartialEq for HttpHeaderConditionConfigBuilder
source§fn eq(&self, other: &HttpHeaderConditionConfigBuilder) -> bool
fn eq(&self, other: &HttpHeaderConditionConfigBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HttpHeaderConditionConfigBuilder
Auto Trait Implementations§
impl Freeze for HttpHeaderConditionConfigBuilder
impl RefUnwindSafe for HttpHeaderConditionConfigBuilder
impl Send for HttpHeaderConditionConfigBuilder
impl Sync for HttpHeaderConditionConfigBuilder
impl Unpin for HttpHeaderConditionConfigBuilder
impl UnwindSafe for HttpHeaderConditionConfigBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> 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