pub trait Request { type Method: Eq + Hash + Clone + Send + Sync; fn path<'a>(&'a self) -> &'a str; fn method<'a>(&'a self) -> &Self::Method; }
Trait to represent a Request which can be handled
Request method, as in HTTP
Path of request. Should not have a leading slash.