| Class | VCR::Response |
| In: |
lib/vcr/structs.rb
|
| Parent: | Struct.new(:status, :headers, :body, :http_version, :adapter_metadata) |
The response of an {HTTPInteraction}.
@attr [ResponseStatus] status the status of the response @attr [Hash{String => Array<String>}] headers the response headers @attr [String] body the response body @attr [nil, String] http_version the HTTP version @attr [Hash] adapter_metadata Additional metadata used by a specific VCR adapter.
| HAVE_ZLIB | = | true |
| HAVE_ZLIB | = | false |
Decode string compressed with gzip or deflate
@raise [VCR::Errors::UnknownContentEncodingError] if the content encoding
is not a known encoding.
Decodes the compressed body and deletes evidence that it was ever compressed.
@return self @raise [VCR::Errors::UnknownContentEncodingError] if the content encoding
is not a known encoding.
Builds a serializable hash from the response data.
@return [Hash] hash that represents this response
and can be easily serialized.
@see Response.from_hash