Sha256: 6cee92d835f90c6c563afb72872945851db4364ad55a19821769b7fe60c6e536

Contents?: true

Size: 551 Bytes

Versions: 30

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

require "rack/body_proxy"

module ActionDispatch
  class Executor
    def initialize(app, executor)
      @app, @executor = app, executor
    end

    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
  end
end

Version data entries

30 entries across 28 versions & 4 rubygems

Version Path
actionpack-7.0.8.7 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.8.6 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.8.5 lib/action_dispatch/middleware/executor.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionpack-7.0.8.4/lib/action_dispatch/middleware/executor.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/executor.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/executor.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionpack-7.0.5.1/lib/action_dispatch/middleware/executor.rb
actionpack-7.0.8.4 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.8.1 lib/action_dispatch/middleware/executor.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/executor.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb
actionpack-7.0.8 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.7.2 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.7.1 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.7 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.6 lib/action_dispatch/middleware/executor.rb
actionpack-7.0.5.1 lib/action_dispatch/middleware/executor.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-7.0.2.3/lib/action_dispatch/middleware/executor.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/executor.rb
actionpack-7.0.5 lib/action_dispatch/middleware/executor.rb