Sha256: f99cc96dd663a0c78d51c1459c54e74ba78855c08048d5ed20e0a810d1300368

Contents?: true

Size: 408 Bytes

Versions: 20

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

20 entries across 20 versions & 1 rubygems

Version Path
actionpack-5.1.7 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.7.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.6.2 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.6.1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.6 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.5 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.5.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.4 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.4.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.3 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.3.rc3 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.3.rc2 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.3.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.2 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.2.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.0 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.0.rc2 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.0.rc1 lib/action_dispatch/middleware/executor.rb
actionpack-5.1.0.beta1 lib/action_dispatch/middleware/executor.rb