Trait BodyExt

Source
pub trait BodyExt {
    type Raw;
    type Error;

    // Required method
    fn into_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>;
}
Expand description

Additional function for hyper::Body

Required Associated Types§

Source

type Raw

Raw body type

Source

type Error

Error if we can’t gather up the raw body

Required Methods§

Source

fn into_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>

Collect the body into a raw form

Implementors§

Source§

impl<T, E> BodyExt for T
where T: Stream<Item = Result<Bytes, E>> + Unpin + Send + 'static,