Class RestClient::AbstractResponse
In: lib/restclient/abstract_response.rb
Parent: Object

Methods

Attributes

args  [R] 
net_http_res  [R] 

Public Class methods

Public Instance methods

HTTP status code

Hash of cookies extracted from response headers

Follow a redirection

A hash of the headers, beautified with symbols and underscores. e.g. "Content-type" will become :content_type.

Return the default behavior corresponding to the response code: the response itself for code in 200..206, redirection for 301 and 302 in get and head cases, redirection for 303 and an exception in other cases

[Validate]