Make FromRequest default to use axum::body::Body (#146)

Most users will implement `FromRequest<axum::body::Body>` so making that
the default makes things a bit easier to use.
This commit is contained in:
David Pedersen
2021-08-07 12:22:14 +02:00
committed by GitHub
parent 5922c4fa50
commit 3d45a97db9
3 changed files with 43 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ use http_body::Body as _;
use std::{error::Error as StdError, fmt};
use tower::BoxError;
#[doc(no_inline)]
pub use hyper::body::Body;
/// A boxed [`Body`] trait object.