Class: NewRelic::Agent::HTTPClients::AsyncHTTPResponse
Instance Method Summary
collapse
#has_status_code?, #initialize, #status_code
Instance Method Details
#[](key) ⇒ Object
16
17
18
|
# File 'lib/new_relic/agent/http_clients/async_http_wrappers.rb', line 16
def [](key)
to_hash[key.downcase]&.first
end
|
#get_status_code ⇒ Object
12
13
14
|
# File 'lib/new_relic/agent/http_clients/async_http_wrappers.rb', line 12
def get_status_code
get_status_code_using(:status)
end
|
#to_hash ⇒ Object
20
21
22
|
# File 'lib/new_relic/agent/http_clients/async_http_wrappers.rb', line 20
def to_hash
@wrapped_response..to_h
end
|