[][src]Trait gotham::router::response::extender::ResponseExtender

pub trait ResponseExtender<B>: RefUnwindSafe {
    fn extend(&self, state: &mut State, response: &mut Response<B>);
}

Allow complex types to extend the Response based on current State and Response data.

Required methods

fn extend(&self, state: &mut State, response: &mut Response<B>)

Extend the Response

Loading content...

Implementors

impl ResponseExtender<Body> for NoopResponseExtender[src]

impl<F, B> ResponseExtender<B> for F where
    F: Fn(&mut State, &mut Response<B>) + Send + Sync + RefUnwindSafe
[src]

Loading content...