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

pub trait StaticResponseExtender: RefUnwindSafe {
    type ResBody: HttpBody;
    fn extend(state: &mut State, response: &mut Response<Self::ResBody>);
}

Extend the Response based on current State and Response data.

Associated Types

type ResBody: HttpBody[src]

The type of the response body. Almost always hyper::Body.

Loading content...

Required methods

fn extend(state: &mut State, response: &mut Response<Self::ResBody>)[src]

Extend the response.

Loading content...

Implementors

Loading content...