Class: Rack::TrafficLogger::FaradayAdapter
- Inherits:
-
Rack::TrafficLogger
- Object
- Rack::TrafficLogger
- Rack::TrafficLogger::FaradayAdapter
- Defined in:
- lib/rack/traffic_logger/faraday_adapter.rb
Overview
noinspection RubyStringKeysInHashInspection
Constant Summary
Constants inherited from Rack::TrafficLogger
Instance Attribute Summary
Attributes inherited from Rack::TrafficLogger
Instance Method Summary collapse
Methods inherited from Rack::TrafficLogger
#initialize, #log, use, #write
Constructor Details
This class inherits a constructor from Rack::TrafficLogger
Instance Method Details
#call(request_env) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/rack/traffic_logger/faraday_adapter.rb', line 6 def call(request_env) rack_env = convert_request(request_env) request = Request.new(self) request.start rack_env @app.call(request_env).on_complete do |response_env| rack_response = convert_response(response_env) request.finish rack_response end end |