pub struct HTTPRouteRulesMatchesHeaders {
pub name: String,
pub type: Option<HTTPRouteRulesMatchesHeadersType>,
pub value: String,
}
Expand description
HTTPHeaderMatch describes how to select a HTTP route by matching HTTP request headers.
Fields§
§name: String
Name is the name of the HTTP Header to be matched. Name matching MUST be case insensitive. (See https://tools.ietf.org/html/rfc7230#section-3.2).
If multiple entries specify equivalent header names, only the first entry with an equivalent name MUST be considered for a match. Subsequent entries with an equivalent header name MUST be ignored. Due to the case-insensitivity of header names, “foo” and “Foo” are considered equivalent.
When a header is repeated in an HTTP request, it is implementation-specific behavior as to how this is represented. Generally, proxies should follow the guidance from the RFC: https://www.rfc-editor.org/rfc/rfc7230.html#section-3.2.2 regarding processing a repeated header, with special handling for “Set-Cookie”.
type: Option<HTTPRouteRulesMatchesHeadersType>
Type specifies how to match against the value of the header.
Support: Core (Exact)
Support: Implementation-specific (RegularExpression)
Since RegularExpression HeaderMatchType has implementation-specific conformance, implementations can support POSIX, PCRE or any other dialects of regular expressions. Please read the implementation’s documentation to determine the supported dialect.
value: String
Value is the value of HTTP Header to be matched.
Trait Implementations§
Source§impl Clone for HTTPRouteRulesMatchesHeaders
impl Clone for HTTPRouteRulesMatchesHeaders
Source§fn clone(&self) -> HTTPRouteRulesMatchesHeaders
fn clone(&self) -> HTTPRouteRulesMatchesHeaders
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HTTPRouteRulesMatchesHeaders
impl Debug for HTTPRouteRulesMatchesHeaders
Source§impl Default for HTTPRouteRulesMatchesHeaders
impl Default for HTTPRouteRulesMatchesHeaders
Source§fn default() -> HTTPRouteRulesMatchesHeaders
fn default() -> HTTPRouteRulesMatchesHeaders
Source§impl<'de> Deserialize<'de> for HTTPRouteRulesMatchesHeaders
impl<'de> Deserialize<'de> for HTTPRouteRulesMatchesHeaders
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for HTTPRouteRulesMatchesHeaders
impl JsonSchema for HTTPRouteRulesMatchesHeaders
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for HTTPRouteRulesMatchesHeaders
impl PartialEq for HTTPRouteRulesMatchesHeaders
Source§fn eq(&self, other: &HTTPRouteRulesMatchesHeaders) -> bool
fn eq(&self, other: &HTTPRouteRulesMatchesHeaders) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HTTPRouteRulesMatchesHeaders
Auto Trait Implementations§
impl Freeze for HTTPRouteRulesMatchesHeaders
impl RefUnwindSafe for HTTPRouteRulesMatchesHeaders
impl Send for HTTPRouteRulesMatchesHeaders
impl Sync for HTTPRouteRulesMatchesHeaders
impl Unpin for HTTPRouteRulesMatchesHeaders
impl UnwindSafe for HTTPRouteRulesMatchesHeaders
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> 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