Trait nickel::Responder [] [src]

pub trait Responder<D> {
    fn respond<'a>(self, Response<'a, D>) -> MiddlewareResult<'a, D>;
}

This trait provides convenience for translating a number of common return types into a MiddlewareResult while also modifying the Response as required.

Please see the examples for some uses.

Required Methods

fn respond<'a>(self, Response<'a, D>) -> MiddlewareResult<'a, D>

Implementors