Sha256: 813ae907721980da77456227a94ea35fa16307e6e568d4fc37c9baded3a63b06
Contents?: true
Size: 538 Bytes
Versions: 6
Compression:
Stored size: 538 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! 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
6 entries across 6 versions & 1 rubygems