instance method
call
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# 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! }
ensure
state.complete! unless returned
end
end
Defined in actionpack/lib/action_dispatch/middleware/executor.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Executor