lib/ocean/api.rb
#
# Returns a hash of HTTP response headers.
#
Returns a hash of HTTP response headers.
Returns a hash of HTTP response headers .
def headers
      @headers ||= (@response.response_headers || "").split("\r\n").inject({}) do |acc, h|
                     k, v = h.split(": ")
                     acc[k] = v
                     acc
                   end
    end
def headers @headers ||= ( @response . response_headers || "" ) . split ( "\r\n" ) . inject ( { } ) do | acc , h | k , v = h . split ( ": " ) acc [ k ] = v acc end end
Returns a hash of HTTP response headers.
Returns a hash of HTTP response headers .