Trait pemmican::router::Router [] [src]

pub trait Router<S, E>: Send + Sync where
    S: Send + Sync + 'static,
    E: Send + Sync + StdError + 'static, 
{ fn get_handler(&self, path: &str, method: &Method) -> Option<Handler<S, E>>; }

A trait for routing a URL path + a Method to a Handler

Required Methods

Implementors