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§

source

fn is_allowed(&self) -> bool

If method is allowed.

source

fn is_get(&self) -> bool

If method is GET.

source

fn is_head(&self) -> bool

If method is HEAD.

source

fn is_options(&self) -> bool

If method is OPTIONS.

Implementations on Foreign Types§

source§

impl MethodExt for Method

source§

fn is_allowed(&self) -> bool

Checks if the HTTP method is allowed (supported) by SWS.

source§

fn is_get(&self) -> bool

Checks if the HTTP method is GET.

source§

fn is_head(&self) -> bool

Checks if the HTTP method is HEAD.

source§

fn is_options(&self) -> bool

Checks if the HTTP method is OPTIONS.

Implementors§