[go: up one dir, main page]

worker

Function response_to_wasm

source
pub fn response_to_wasm<B>(res: Response<B>) -> Result<Response>
where B: Body<Data = Bytes> + 'static,
Expand description

Requires http feature. Convert generic http::Response<B> to web_sys::Response where B can be any http_body::Body