Class: Rails::Rack::LogTailer
- Defined in:
- lib/api_hammer/rails_request_logging.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
16 17 18 19 20 |
# File 'lib/api_hammer/rails_request_logging.rb', line 16 def call(env) status, headers, body = @app.call(env) body_proxy = ::Rack::BodyProxy.new(body) { tail! } [status, headers, body_proxy] end |