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
IncomingResponseBody: The body type for inbound HTTP responses.http::Response: The standard HTTP response type from thehttpcrate.
Aliased Type§
pub struct Response<T = IncomingBody<Response>> { /* private fields */ }Trait Implementations§
Source§impl FromResponse for Response
impl FromResponse for Response
Source§fn from_response(resp: Response) -> Result<Self, ErrorCode>
fn from_response(resp: Response) -> Result<Self, ErrorCode>
Attempts to construct
Self from a wasip3::http::types::Response.