开发者

Disabling Rails middleware for some actions but not all

开发者 https://www.devze.com 2023-04-10 07:54 出处:网络
It seems that ActionDispatch::ParamsParser is quite slow for some requests, in particular when there is a large JSON request body. I\'d like to disable it for these requests, but for most of my applic

It seems that ActionDispatch::ParamsParser is quite slow for some requests, in particular when there is a large JSON request body. I'd like to disable it for these requests, but for most of my application it works great. Is there a conven开发者_StackOverflow社区ient way to disable the ParamsParser for some actions without removing it from the middleware stack entirely? This is using Rails 3.0.9.

0

精彩评论

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