Class: Faraday::HttpCache
- Inherits:
-
Middleware
- Object
- Middleware
- Faraday::HttpCache
- Defined in:
- lib/faraday_http_cache_patch.rb
Instance Method Summary collapse
Instance Method Details
#create_response(env) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/faraday_http_cache_patch.rb', line 7 def create_response(env) hash = env.to_hash { status: hash[:status], body: hash[:response_body] || hash[:body], response_headers: hash[:response_headers] } end |