class NewRelicHTTP::HTTPResponse

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/newrelic_httprb/wrappers.rb, line 5
def initialize(response)
  @response = response
end

Public Instance Methods

[](key) click to toggle source
# File lib/newrelic_httprb/wrappers.rb, line 9
def [](key)
  _, value = response.headers.find { |k,_| key.downcase == k.downcase }
  value unless value.nil?
end
to_hash() click to toggle source
# File lib/newrelic_httprb/wrappers.rb, line 14
def to_hash
  response.headers
end