Method: DHC::Response#initialize

Defined in:
lib/dhc/response.rb

#initialize(raw, request, from_cache: false) ⇒ Response

A response is initalized with the underlying raw response (typhoeus in our case) and the associated request.



19
20
21
22
23
# File 'lib/dhc/response.rb', line 19

def initialize(raw, request, from_cache: false)
  self.request = request
  self.raw = raw
  @from_cache = from_cache
end