class NewRelic::Agent::HTTPClients::HTTPClientResponse

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 10
def initialize(response)
  @response = response
end

Public Instance Methods

[](key) click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 14
def [](key)
  response.headers.each do |k,v|
    if key.downcase == k.downcase
      return v
    end
  end
  nil
end
to_hash() click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 23
def to_hash
  response.headers
end