Trait monoio_http::common::body::BodyExt
source · pub trait BodyExt: Body {
type BytesFuture<'a>: Future<Output = Result<Bytes, Self::Error>>
where Self: 'a;
type ChunksFuture<'a>: Future<Output = Result<Chunks, Self::Error>>
where Self: 'a;
// Required methods
fn bytes(&mut self) -> Self::BytesFuture<'_>;
fn chunks(&mut self) -> Self::ChunksFuture<'_>;
}
Required Associated Types§
type BytesFuture<'a>: Future<Output = Result<Bytes, Self::Error>> where Self: 'a
type ChunksFuture<'a>: Future<Output = Result<Chunks, Self::Error>> where Self: 'a
Required Methods§
sourcefn bytes(&mut self) -> Self::BytesFuture<'_>
fn bytes(&mut self) -> Self::BytesFuture<'_>
Return continues memory
sourcefn chunks(&mut self) -> Self::ChunksFuture<'_>
fn chunks(&mut self) -> Self::ChunksFuture<'_>
Return bytes array