Class: Rails::Rack::LogTailer

Inherits:
Object
  • Object
show all
Defined in:
lib/api_hammer/rails_request_logging.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
# File 'lib/api_hammer/rails_request_logging.rb', line 9

def call(env)
  status, headers, body = @app.call(env)
  body_proxy = ::Rack::BodyProxy.new(body) { tail! }
  [status, headers, body_proxy]
end