Method: Patron::Response#headers

Defined in:
lib/patron/response.rb

#headersHash (readonly)

Returns the response headers. If there were multiple headers received for the same value (like "Cookie"), the header values will be within an Array under the key for the header, in order.

Returns:

  • (Hash)

    the response headers. If there were multiple headers received for the same value (like "Cookie"), the header values will be within an Array under the key for the header, in order.



25
26
27
# File 'lib/patron/response.rb', line 25

def headers
  @headers
end