Trait static_web_server::exts::http::MethodExt
source · 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.