class NewRelic::Agent::HTTPClients::CurbRequest
Constants
- CURB
Public Class Methods
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 13 def initialize(curlobj) @curlobj = curlobj end
Public Instance Methods
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 33 def [](key) headers[key] end
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 37 def []=(key, value) headers[key] = value end
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 45 def headers @curlobj.headers end
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 25 def host host_from_header || self.uri.host end
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 21 def host_from_header self[LHOST] || self[UHOST] end
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 29 def method @curlobj._nr_http_verb end
Source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 41 def uri @uri ||= URIUtil.parse_and_normalize_url(@curlobj.url) end