[][src]Function hyper::body::aggregate

pub async fn aggregate<T>(body: T) -> Result<impl Buf, T::Error> where
    T: HttpBody

Aggregate the data buffers from a body asynchronously.

The returned impl Buf groups the Bufs from the HttpBody without copying them. This is ideal if you don't require a contiguous buffer.