Sha256: 060b0189a5f0ff3b8055447baf4587ff5c502e6d46f8cedd32ece6e16f86d666
Contents?: true
Size: 466 Bytes
Versions: 7
Compression:
Stored size: 466 Bytes
Contents
module VCR class Response < Struct.new(:status, :headers, :body, :http_version) include Normalizers::Header include Normalizers::Body def self.from_net_http_response(response) new( ResponseStatus.from_net_http_response(response), response.to_hash, response.body, response.http_version ) end def update_content_length_header headers['content-length'] &&= [body.length.to_s] end end end
Version data entries
7 entries across 7 versions & 1 rubygems