class NewRelic::Agent::HTTPClients::TyphoeusHTTPResponse
Public Instance Methods
Source
# File lib/new_relic/agent/http_clients/typhoeus_wrappers.rb, line 11 def [](key) unless headers.nil? result = headers[key] # Typhoeus 0.5.3 has a bug where asking the headers hash for a # nonexistent header will return the hash itself, not what we want. result == headers ? nil : result end end
Source
# File lib/new_relic/agent/http_clients/typhoeus_wrappers.rb, line 21 def to_hash hash = {} headers.each do |(k, v)| hash[k] = v end hash end
Private Instance Methods
Source
# File lib/new_relic/agent/http_clients/typhoeus_wrappers.rb, line 31 def headers @wrapped_response.headers end