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 ==
.impl StructuralPartialEq for CustomHttpHeader
Auto Trait Implementations§
impl Freeze for CustomHttpHeader
impl RefUnwindSafe for CustomHttpHeader
impl Send for CustomHttpHeader
impl Sync for CustomHttpHeader
impl Unpin for CustomHttpHeader
impl UnwindSafe for CustomHttpHeader
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> 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