开发者

Ruby on Rails question - where is the first point in rails code that a request hits?

开发者 https://www.devze.com 2022-12-14 17:41 出处:网络
Ruby on Rails question - where is the first point in rails code that a request hits? 开发者_开发问答

Ruby on Rails question - where is the first point in rails code that a request hits?

开发者_开发问答

(I can then add some logging code there as I want to measure some response times)

Regards


Check out this Railscast on Rack Middleware that will give you exactly that. Rack is the first place that a Rails 2.3+ app has requests hit and it handles the round trip of the request.

0

精彩评论

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