Enum k8s_gateway_api::HttpHeaderMatch 
source · pub enum HttpHeaderMatch {
    Exact {
        name: HttpHeaderName,
        value: String,
    },
    RegularExpression {
        name: HttpHeaderName,
        value: String,
    },
}Expand description
HTTPHeaderMatch describes how to select a HTTP route by matching HTTP request headers.
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”.
Variants§
Trait Implementations§
source§impl Clone for HttpHeaderMatch
 
impl Clone for HttpHeaderMatch
source§fn clone(&self) -> HttpHeaderMatch
 
fn clone(&self) -> HttpHeaderMatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HttpHeaderMatch
 
impl Debug for HttpHeaderMatch
source§impl<'de> Deserialize<'de> for HttpHeaderMatch
 
impl<'de> Deserialize<'de> for HttpHeaderMatch
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 HttpHeaderMatch
 
impl JsonSchema for HttpHeaderMatch
source§fn schema_name() -> String
 
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
 
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq<HttpHeaderMatch> for HttpHeaderMatch
 
impl PartialEq<HttpHeaderMatch> for HttpHeaderMatch
source§fn eq(&self, other: &HttpHeaderMatch) -> bool
 
fn eq(&self, other: &HttpHeaderMatch) -> bool
self and other values to be equal, and is used
by ==.