Module: VCR::LibraryHooks::Typhoeus

Defined in:
lib/vcr/library_hooks/typhoeus.rb,
lib/vcr/library_hooks/typhoeus_0.4.rb

Defined Under Namespace

Classes: RequestHandler

Class Method Summary collapse

Class Method Details

.vcr_response_from(response) ⇒ Object



77
78
79
80
81
82
83
84
# File 'lib/vcr/library_hooks/typhoeus.rb', line 77

def self.vcr_response_from(response)
  VCR::Response.new \
    VCR::ResponseStatus.new(response.code, response.status_message),
    response.headers,
    response.body,
    response.http_version,
    { "effective_url" => response.effective_url }
end