Trait Request
Other items inmimeograph_router
pub trait Request { fn path(&self) -> Cow<'_, str>; fn method(&self) -> Cow<'_, str>; }
A trait for types that can be routed
fn path(&self) -> Cow<'_, str>
Return the path portion of a URI.
fn method(&self) -> Cow<'_, str>
Returns the http VERB in UPPERCASE
impl<T> Request for Request<T>
pub fn path(&self) -> Cow<'_, str>
pub fn method(&self) -> Cow<'_, str>