Struct aws_sdk_wafv2::types::CustomHttpHeader
source · #[non_exhaustive]pub struct CustomHttpHeader {
pub name: String,
pub value: String,
}
Expand description
A custom header for custom request and response handling. This is used in CustomResponse
and CustomRequestHandling
.
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.name: String
The name of the custom header.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-
, to avoid confusion with the headers that are already in the request. For example, for the header name sample
, WAF inserts the header x-amzn-waf-sample
.
value: String
The value of the custom header.
Implementations§
source§impl CustomHttpHeader
impl CustomHttpHeader
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the custom header.
For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-
, to avoid confusion with the headers that are already in the request. For example, for the header name sample
, WAF inserts the header x-amzn-waf-sample
.
source§impl CustomHttpHeader
impl CustomHttpHeader
sourcepub fn builder() -> CustomHttpHeaderBuilder
pub fn builder() -> CustomHttpHeaderBuilder
Creates a new builder-style object to manufacture CustomHttpHeader
.
Trait Implementations§
source§impl Clone for CustomHttpHeader
impl Clone for CustomHttpHeader
source§fn clone(&self) -> CustomHttpHeader
fn clone(&self) -> CustomHttpHeader
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomHttpHeader
impl Debug for CustomHttpHeader
source§impl PartialEq for CustomHttpHeader
impl PartialEq for CustomHttpHeader
source§fn eq(&self, other: &CustomHttpHeader) -> bool
fn eq(&self, other: &CustomHttpHeader) -> bool
self
and other
values to be equal, and is used
by ==
.