Class: RequestHeadersMiddleware::FaradayAdapter
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- RequestHeadersMiddleware::FaradayAdapter
- Defined in:
- lib/request_headers_middleware/faraday_adapter.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 |
# File 'lib/request_headers_middleware/faraday_adapter.rb', line 7 def call(env) env[:request_headers].merge! RequestHeadersMiddleware.store @app.call(env) end |