ResponseExt

Trait ResponseExt 

Source
pub trait ResponseExt {
    // Required method
    fn into_cow(self) -> Cow<'static, [u8]>;
}

Required Methods§

Source

fn into_cow(self) -> Cow<'static, [u8]>

Implementations on Foreign Types§

Source§

impl ResponseExt for Response<Body>

Source§

fn into_cow(self) -> Cow<'static, [u8]>

Convert the request into a copy-on-write body

§Blocking

This function may block if the value is a Body::File.

§Panics

This function panics if there is an error reading a Body::File.

Implementors§