开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜