pub trait GetRequestBody {
// Required method
fn body_bytes<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where Self: 'async_trait;
}
Expand description
A handy extension to hyper::Request that allows for easily
reading the request body as a single Bytes
object.