Trait nickel::Responder [] [src]

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

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>) -> MiddlewareResult<'a>

Implementors