I want to limit the size of accepted application/json http request bodys in post method for certain controller/method. So that it is not possible to send multiple megabytes of json to my application, which are then processed and make my app run for a long time.
I know about properties like maxSwallowSize and maxPostSize but as far as I understood this methods sets size for methods in whole project.