The direct_call plugin makes the call class method skip the middleware stack (app.call will still call the middleware). This can be used as an optimization, as the Roda class itself can be used as the callable, which is faster than using a lambda.
This plugin is used automatically by Roda when freezing an app, if Roda determines that doing so is safe (where there is no middleware). However, it can be used manually for unfrozen apps, or in cases where middleware is used.
Classes and Modules
Public Class methods
configure(app)
[show source]
# File lib/roda/plugins/direct_call.rb 16 def self.configure(app) 17 app.send(:build_rack_app) 18 end