#[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
sourceimpl 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.
sourceimpl HttpRequestMethodConditionConfig
impl HttpRequestMethodConditionConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HttpRequestMethodConditionConfig
.
Trait Implementations
sourceimpl Clone for HttpRequestMethodConditionConfig
impl Clone for HttpRequestMethodConditionConfig
sourcefn clone(&self) -> HttpRequestMethodConditionConfig
fn clone(&self) -> HttpRequestMethodConditionConfig
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more