Skip to main content

Response

Type Alias Response 

Source
pub type Response<T = IncomingBody<Response>> = Response<T>;
Expand description

A type alias for an HTTP response with a customizable body type.

This is a convenience wrapper around http::Response, parameterized by the body type T. By default, it uses IncomingResponseBody, which represents the standard incoming body type used by this runtime.

§See also

Aliased Type§

pub struct Response<T = IncomingBody<Response>> { /* private fields */ }

Trait Implementations§

Source§

impl FromResponse for Response

Source§

fn from_response(resp: Response) -> Result<Self, ErrorCode>

Attempts to construct Self from a wasip3::http::types::Response.