pub struct HttpRequestMethodConditionConfig {
pub values: Option<Vec<String>>,
}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.
Fields§
§values: Option<Vec<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.
Trait Implementations§
Source§impl Clone for HttpRequestMethodConditionConfig
impl Clone for HttpRequestMethodConditionConfig
Source§fn clone(&self) -> HttpRequestMethodConditionConfig
fn clone(&self) -> HttpRequestMethodConditionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for HttpRequestMethodConditionConfig
impl Default for HttpRequestMethodConditionConfig
Source§fn default() -> HttpRequestMethodConditionConfig
fn default() -> HttpRequestMethodConditionConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for HttpRequestMethodConditionConfig
impl PartialEq for HttpRequestMethodConditionConfig
Source§fn eq(&self, other: &HttpRequestMethodConditionConfig) -> bool
fn eq(&self, other: &HttpRequestMethodConditionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HttpRequestMethodConditionConfig
Auto Trait Implementations§
impl Freeze for HttpRequestMethodConditionConfig
impl RefUnwindSafe for HttpRequestMethodConditionConfig
impl Send for HttpRequestMethodConditionConfig
impl Sync for HttpRequestMethodConditionConfig
impl Unpin for HttpRequestMethodConditionConfig
impl UnwindSafe for HttpRequestMethodConditionConfig
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
Mutably borrows from an owned value. Read more