class NewRelic::Agent::HTTPClients::CurbRequest
Public Class Methods
new( curlobj )
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 9 def initialize( curlobj ) @curlobj = curlobj end
Public Instance Methods
[]( key )
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 25 def []( key ) @curlobj.headers[ key ] end
[]=( key, value )
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 29 def []=( key, value ) @curlobj.headers[ key ] = value end
host()
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 17 def host self["host"] || self["Host"] || self.uri.host end
method()
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 21 def method @curlobj._nr_http_verb end
type()
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 13 def type 'Curb' end
uri()
click to toggle source
# File lib/new_relic/agent/http_clients/curb_wrappers.rb, line 33 def uri @uri ||= NewRelic::Agent::HTTPClients::URIUtil.parse_url(@curlobj.url) end