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:
Jonas Platte
2022-09-28 20:20:47 +00:00
committed by GitHub
co-authored by David Pedersen
parent be54583d98
commit b94248191e
10 changed files with 87 additions and 44 deletions
+1
View File
@@ -16,6 +16,7 @@ mod from_ref;
mod request_parts;
mod tuple;
pub(crate) use self::default_body_limit::DefaultBodyLimitKind;
pub use self::{default_body_limit::DefaultBodyLimit, from_ref::FromRef};
mod private {