How do I limit request size in Rack?
In Rack-based app, what is the best way to refuse requests that are excessively long (considering URL incl. query, headers and body开发者_JAVA技巧)?
(I mean Rack, the Ruby server middleware :D)
You can give a look to the attributes of the incoming request ! You will have some ideas. the request object is a hash so you can inspect it and see how you wanna handle it.
精彩评论