Sha256: f75539f03dd5f0e7fb8a2a2f039ac76555f7a04a13d420b2c6bb87bc66b59624

Contents?: true

Size: 408 Bytes

Versions: 31

Compression:

Stored size: 408 Bytes

Contents

require 'rack/body_proxy'

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

    def call(env)
      state = @executor.run!
      begin
        response = @app.call(env)
        returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! }
      ensure
        state.complete! unless returned
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
actionpack-5.0.7.2 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.7.1 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.7 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.6 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.6.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.5 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.5.rc2 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.5.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.4 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.4.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.3 lib/action_dispatch/middleware/executor.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/actionpack-5.0.2/lib/action_dispatch/middleware/executor.rb
actionpack-5.0.2 lib/action_dispatch/middleware/executor.rb
actionpack-5.0.2.rc1 lib/action_dispatch/middleware/executor.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb