Trait gotham::router::response::ResponseExtender

source ·
pub trait ResponseExtender<B>: RefUnwindSafe {
    // Required method
    fn extend(&self, state: &mut State, response: &mut Response<B>);
}
Expand description

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

Required Methods§

source

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

Extend the Response

Implementors§