Trait gloo_net::http::IntoRawResponse
source · pub trait IntoRawResponse {
// Required method
fn into_raw(self, init: ResponseInit) -> Result<Response, JsValue>;
}
Available on crate feature
http
only.Expand description
trait which allow consuming self into a raw web_sys::Response
Required Methods§
sourcefn into_raw(self, init: ResponseInit) -> Result<Response, JsValue>
fn into_raw(self, init: ResponseInit) -> Result<Response, JsValue>
A method which converts self
and a web_sys::ResponseInit
into a result to a
web_sys::Response
.