Struct aws_sdk_wafv2::types::HeaderOrder
source · #[non_exhaustive]pub struct HeaderOrder {
pub oversize_handling: OversizeHandling,
}
Expand description
Inspect a string containing the list of the request's header names, ordered as they appear in the web request that WAF receives for inspection. WAF generates the string and then uses that as the field to match component in its inspection. WAF separates the header names in the string using colons and no added spaces, for example host:user-agent:accept:authorization:referer
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.oversize_handling: OversizeHandling
What WAF should do if the headers of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to WAF.
The options for oversize handling are the following:
-
CONTINUE
- Inspect the available headers normally, according to the rule inspection criteria. -
MATCH
- Treat the web request as matching the rule statement. WAF applies the rule action to the request. -
NO_MATCH
- Treat the web request as not matching the rule statement.
Implementations§
source§impl HeaderOrder
impl HeaderOrder
sourcepub fn oversize_handling(&self) -> &OversizeHandling
pub fn oversize_handling(&self) -> &OversizeHandling
What WAF should do if the headers of the request are more numerous or larger than WAF can inspect. WAF does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to WAF.
The options for oversize handling are the following:
-
CONTINUE
- Inspect the available headers normally, according to the rule inspection criteria. -
MATCH
- Treat the web request as matching the rule statement. WAF applies the rule action to the request. -
NO_MATCH
- Treat the web request as not matching the rule statement.
source§impl HeaderOrder
impl HeaderOrder
sourcepub fn builder() -> HeaderOrderBuilder
pub fn builder() -> HeaderOrderBuilder
Creates a new builder-style object to manufacture HeaderOrder
.
Trait Implementations§
source§impl Clone for HeaderOrder
impl Clone for HeaderOrder
source§fn clone(&self) -> HeaderOrder
fn clone(&self) -> HeaderOrder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HeaderOrder
impl Debug for HeaderOrder
source§impl PartialEq for HeaderOrder
impl PartialEq for HeaderOrder
source§fn eq(&self, other: &HeaderOrder) -> bool
fn eq(&self, other: &HeaderOrder) -> bool
self
and other
values to be equal, and is used
by ==
.