class NewRelic::Agent::HTTPClients::HTTPXHTTPRequest
Constants
- DEFAULT_HOST
- TYPE
Attributes
Public Class Methods
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 56 def initialize(request) @request = request @uri = request.uri end
Public Instance Methods
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 85 def [](key) @request.headers[key] end
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 77 def []=(key, value) @request.headers[key] = value end
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 81 def headers @request.headers end
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 69 def host host_from_header || uri.host&.downcase || DEFAULT_HOST end
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 65 def host_from_header self[LHOST] || self[UHOST] end
Source
# File lib/new_relic/agent/http_clients/httpx_wrappers.rb, line 73 def method @request.verb end