Type Alias worker::HttpResponse

source ·
pub type HttpResponse = Response<Body>;
Expand description

Requires http feature. Type alias for http::Response<worker::Body>.

Aliased Type§

struct HttpResponse { /* private fields */ }

Trait Implementations§

source§

impl TryFrom<Response> for HttpResponse

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(res: Response) -> Result<HttpResponse>

Performs the conversion.