I'd like to return HTTP 400 in case the message text is longer than X characters.
Currently I don't have other option but write a middleware that parses the raw HTTP request. That's not optimal, since the parsing is already done on the server. Is there any other option?
I'd like to return HTTP 400 in case the message text is longer than X characters.
Currently I don't have other option but write a middleware that parses the raw HTTP request. That's not optimal, since the parsing is already done on the server. Is there any other option?