In general, how do I enforce a maximum POST body length for different endpoints and how do I enforce validations such as length, data type, charset, and invalid char check for individual fields..
a
Aleksei Tirman [JB]
01/29/2024, 8:53 AM
Unfortunately, there is no built-in solution for limiting POST body length.
👍🏾 1
m
Manas Marthi
01/29/2024, 9:40 PM
Hi Aleksei, is it something to be handled by using an additional webserver like NGINX? Or, is it something to be configured as part of Netty configuration?
a
Aleksei Tirman [JB]
01/30/2024, 7:39 AM
I think that limit can be configured on both sides but for Nginx it would be easier.
Aleksei Tirman [JB]
01/30/2024, 7:41 AM
Also, you can find a rough solution on the Ktor side here.