Method: NewRelic::Agent::HTTPClients::HTTPXHTTPResponse#initialize
- Defined in:
- lib/new_relic/agent/http_clients/httpx_wrappers.rb
#initialize(response) ⇒ HTTPXHTTPResponse
Returns a new instance of HTTPXHTTPResponse.
20 21 22 23 24 25 26 |
# File 'lib/new_relic/agent/http_clients/httpx_wrappers.rb', line 20 def initialize(response) if response.is_a?(::HTTPX::ErrorResponse) @response = response.response || HTTPXErrorResponse.new else @response = response end end |