Module: Rack::Cargo::RequestExecutor
- Defined in:
- lib/rack/cargo/request_executor.rb
Class Method Summary collapse
Class Method Details
.call(_request, state) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rack/cargo/request_executor.rb', line 6 def self.call(_request, state) app = state.fetch(:app) request_env = state.fetch(:request_env) status, headers, body = app.call(request_env) body.close if body.respond_to?(:close) state[:app_response] = { status: status, headers: headers, body: body } end |