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

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

Extend the Response based on current State and Response data.

Associated Types

type ResBody: Payload

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

Loading content...

Required methods

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

Extend the response.

Loading content...

Implementors

impl StaticResponseExtender for NoopPathExtractor[src]

type ResBody = Body

impl StaticResponseExtender for NoopQueryStringExtractor[src]

type ResBody = Body

impl StaticResponseExtender for FilePathExtractor[src]

type ResBody = Body

impl StaticResponseExtender for NoopResponseExtender[src]

type ResBody = Body

Loading content...