[][src]Trait trout::Request

pub trait Request {
    fn path<'a>(&'a self) -> &'a str;
fn method<'a>(&'a self) -> &'a str; }

Trait to represent a Request which can be handled

Required methods

fn path<'a>(&'a self) -> &'a str

Path of request. Should not have a leading slash.

fn method<'a>(&'a self) -> &'a str

Request method, as in HTTP

Loading content...

Implementations on Foreign Types

impl<B> Request for Request<B>[src]

Loading content...

Implementors

Loading content...