In general, how do I enforce a maximum POST body l...
# ktor
m
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
Unfortunately, there is no built-in solution for limiting POST body length.
👍🏾 1
m
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
I think that limit can be configured on both sides but for Nginx it would be easier.
Also, you can find a rough solution on the Ktor side here.