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§

source

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.

Implementations on Foreign Types§

source§

impl IntoRawResponse for Option<&str>

source§

impl IntoRawResponse for Option<&Object>

source§

impl IntoRawResponse for Option<&Blob>

source§

impl IntoRawResponse for Option<&FormData>

source§

impl IntoRawResponse for Option<&ReadableStream>

source§

impl IntoRawResponse for Option<&UrlSearchParams>

source§

impl IntoRawResponse for Option<&mut [u8]>

Implementors§