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

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.