#[non_exhaustive]pub struct HttpRequestMethodConditionConfig { /* private fields */ }
Expand description
Information about an HTTP method condition.
HTTP defines a set of request methods, also referred to as HTTP verbs. For more information, see the HTTP Method Registry. You can also define custom HTTP methods.
Implementations§
source§impl HttpRequestMethodConditionConfig
impl HttpRequestMethodConditionConfig
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.
If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
source§impl HttpRequestMethodConditionConfig
impl HttpRequestMethodConditionConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HttpRequestMethodConditionConfig
.
Trait Implementations§
source§impl Clone for HttpRequestMethodConditionConfig
impl Clone for HttpRequestMethodConditionConfig
source§fn clone(&self) -> HttpRequestMethodConditionConfig
fn clone(&self) -> HttpRequestMethodConditionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<HttpRequestMethodConditionConfig> for HttpRequestMethodConditionConfig
impl PartialEq<HttpRequestMethodConditionConfig> for HttpRequestMethodConditionConfig
source§fn eq(&self, other: &HttpRequestMethodConditionConfig) -> bool
fn eq(&self, other: &HttpRequestMethodConditionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.