Struct aws_sdk_wafv2::types::CustomRequestHandling
source · #[non_exhaustive]pub struct CustomRequestHandling {
pub insert_headers: Vec<CustomHttpHeader>,
}
Expand description
Custom request handling behavior that inserts custom headers into a web request. You can add custom request handling for WAF to use when the rule action doesn't block the request. For example, CaptchaAction
for requests with valid t okens, and AllowAction
.
For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.
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.insert_headers: Vec<CustomHttpHeader>
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
Implementations§
source§impl CustomRequestHandling
impl CustomRequestHandling
sourcepub fn insert_headers(&self) -> &[CustomHttpHeader]
pub fn insert_headers(&self) -> &[CustomHttpHeader]
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
source§impl CustomRequestHandling
impl CustomRequestHandling
sourcepub fn builder() -> CustomRequestHandlingBuilder
pub fn builder() -> CustomRequestHandlingBuilder
Creates a new builder-style object to manufacture CustomRequestHandling
.
Trait Implementations§
source§impl Clone for CustomRequestHandling
impl Clone for CustomRequestHandling
source§fn clone(&self) -> CustomRequestHandling
fn clone(&self) -> CustomRequestHandling
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomRequestHandling
impl Debug for CustomRequestHandling
source§impl PartialEq for CustomRequestHandling
impl PartialEq for CustomRequestHandling
source§fn eq(&self, other: &CustomRequestHandling) -> bool
fn eq(&self, other: &CustomRequestHandling) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomRequestHandling
Auto Trait Implementations§
impl Freeze for CustomRequestHandling
impl RefUnwindSafe for CustomRequestHandling
impl Send for CustomRequestHandling
impl Sync for CustomRequestHandling
impl Unpin for CustomRequestHandling
impl UnwindSafe for CustomRequestHandling
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