pub trait StaticResponseExtender: RefUnwindSafe {
    type ResBody: HttpBody;

    // Required method
    fn extend(state: &mut State, response: &mut Response<Self::ResBody>);
}
Expand description

Extend the Response based on current State and Response data.

Required Associated Types§

source

type ResBody: HttpBody

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

Required Methods§

source

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

Extend the response.

Implementors§