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

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

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.