class Faraday::HttpCache

Public Instance Methods

create_response(env) click to toggle source
# 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