Methods
Class Public methods
new(app, executor) Link
Instance Public methods
call(env) Link
# File actionpack/lib/action_dispatch/middleware/executor.rb, line 11 def call(env) state = @executor.run!(reset: true) begin response = @app.call(env) returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! } rescue => error @executor.error_reporter.report(error, handled: false) raise ensure state.complete! unless returned end end