Trait 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§