开发者

How do I limit request size in Rack?

开发者 https://www.devze.com 2023-02-19 12:59 出处:网络
In Rack-based app, what is the best way to refuse requests that are excessively long (considering URL incl. query, headers and body开发者_JAVA技巧)?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消