Class: NewRelic::Agent::HTTPClients::CurbRequest
Constant Summary
collapse
- CURB =
'Curb'
AbstractRequest::COLON, AbstractRequest::LHOST, AbstractRequest::UHOST
Instance Method Summary
collapse
Constructor Details
#initialize(curlobj) ⇒ CurbRequest
Returns a new instance of CurbRequest.
13
14
15
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 13
def initialize(curlobj)
@curlobj = curlobj
end
|
Instance Method Details
#[](key) ⇒ Object
33
34
35
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 33
def [](key)
[key]
end
|
#[]=(key, value) ⇒ Object
37
38
39
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 37
def []=(key, value)
[key] = value
end
|
45
46
47
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 45
def
@curlobj.
end
|
#host ⇒ Object
25
26
27
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 25
def host
|| self.uri.host
end
|
21
22
23
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 21
def
self[LHOST] || self[UHOST]
end
|
#method ⇒ Object
29
30
31
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 29
def method
@curlobj._nr_http_verb
end
|
#type ⇒ Object
17
18
19
|
# File 'lib/new_relic/agent/http_clients/curb_wrappers.rb', line 17
def type
CURB
end
|