class NewRelic::Agent::HTTPClients::HTTPClientRequest
Attributes
request[R]
uri[R]
Public Class Methods
new(request)
click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 31 def initialize(request) @request = request @uri = request.header.request_uri end
Public Instance Methods
[](key)
click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 52 def [](key) request.headers[key] end
[]=(key, value)
click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 56 def []=(key, value) request.http_header[key] = value end
host()
click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 44 def host if hostname = (self['host'] || self['Host']) hostname.split(':').first else uri.host.to_s end end
method()
click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 40 def method request.header.request_method end
type()
click to toggle source
# File lib/new_relic/agent/http_clients/httpclient_wrappers.rb, line 36 def type "HTTPClient" end