::from_request would not, by default, set a limit for the size of the request body. That meant if a malicious peer would send a very large (or infinite) body your server might run out of memory and crash. This also applies to these extractors which used Bytes::from_request internally: axum::extract::Form axum::extract::Json String
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.