Trait nickel::Middleware
[−]
[src]
pub trait Middleware<D>: Send + 'static + Sync { fn invoke<'mw, 'conn>(&'mw self, _req: &mut Request<'mw, 'conn, D>, res: Response<'mw, D, Fresh>) -> MiddlewareResult<'mw, D> { ... } }
Provided Methods
fn invoke<'mw, 'conn>(&'mw self, _req: &mut Request<'mw, 'conn, D>, res: Response<'mw, D, Fresh>) -> MiddlewareResult<'mw, D>
Implementors
impl<D: 'static> Middleware<D> for Router<D>
impl<D> Middleware<D> for FaviconHandler
impl<D> Middleware<D> for StaticFilesHandler
impl<D, M: Middleware<D>> Middleware<D> for Mount<M>