How to limit content size in request? #799
Answered
by
davidpdrsn
0xdeafbeef
asked this question in
Q&A
-
Is there any analogue of content_length_limit in warp? |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Feb 28, 2022
Replies: 2 comments 1 reply
-
Yep https://docs.rs/axum/latest/axum/extract/struct.ContentLengthLimit.html |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davidpdrsn
-
For those using a newer version of Axum, in #1400 ContentLengthLimit was removed in favor of https://docs.rs/axum/latest/axum/extract/struct.DefaultBodyLimit.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep https://docs.rs/axum/latest/axum/extract/struct.ContentLengthLimit.html