pub trait MethodExt {
// Required methods
fn is_allowed(&self) -> bool;
fn is_get(&self) -> bool;
fn is_head(&self) -> bool;
fn is_options(&self) -> bool;
}Expand description
SWS HTTP Method extensions trait.
Required Methods§
Sourcefn is_allowed(&self) -> bool
fn is_allowed(&self) -> bool
If method is allowed.
Sourcefn is_options(&self) -> bool
fn is_options(&self) -> bool
If method is OPTIONS.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".