mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Add RequestExt::{with_limited_body, into_limited_body} (#1420)
* Move RequestExt and RequestPartsExt into axum-core * Add RequestExt::into_limited_body … and use it for Bytes extraction. * Add RequestExt::with_limited_body … and use it for Multipart extraction. Co-authored-by: David Pedersen <[email protected]>
This commit is contained in:
co-authored by
David Pedersen
parent
be54583d98
commit
b94248191e
@@ -52,6 +52,7 @@
|
||||
pub(crate) mod macros;
|
||||
|
||||
mod error;
|
||||
mod ext_traits;
|
||||
pub use self::error::Error;
|
||||
|
||||
pub mod body;
|
||||
@@ -60,3 +61,5 @@ pub mod response;
|
||||
|
||||
/// Alias for a type-erased error type.
|
||||
pub type BoxError = Box<dyn std::error::Error + Send + Sync>;
|
||||
|
||||
pub use self::ext_traits::{request::RequestExt, request_parts::RequestPartsExt};
|
||||
|
||||
Reference in New Issue
Block a user