Trait BodyExt
Other items inswagger
pub trait BodyExt { type Raw; type Error; fn into_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>; }
Additional function for hyper::Body
type Raw
Raw body type
type Error
Error if we can’t gather up the raw body
fn into_raw(self) -> BoxFuture<'static, Result<Self::Raw, Self::Error>>
Collect the body into a raw form
impl<T, E> BodyExt for T where T: Stream<Item = Result<Bytes, E>> + Unpin + Send + 'static,
type Raw = Vec<u8>
type Error = E