Type Alias xitca_web::http::WebResponse

source ·
pub type WebResponse<B = ResponseBody> = Response<B>;
Expand description

type alias for default response type xitca-web uses.

Aliased Type§

struct WebResponse<B = ResponseBody> { /* private fields */ }

Trait Implementations§

source§

impl<'r, C, B, ResB> Responder<WebContext<'r, C, B>> for WebResponse<ResB>

§

type Response = Response<ResB>

§

type Error = Error<C>

source§

async fn respond( self, _: WebContext<'r, C, B>, ) -> Result<Self::Response, Self::Error>

generate response from given request.
source§

fn map(self, res: Self::Response) -> Result<Self::Response, Self::Error>
where Self: Sized,

map response type and mutate it’s state. default to pass through without any modification.