class Mmtrix::Agent::HTTPClients::HTTPClientRequest
Attributes
request[R]
uri[R]
Public Class Methods
new(request)
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 32 def initialize(request) @request = request @uri = request.header.request_uri end
Public Instance Methods
[](key)
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 53 def [](key) request.headers[key] end
[]=(key, value)
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 57 def []=(key, value) request.http_header[key] = value end
host()
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 45 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/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 41 def method request.header.request_method end
type()
click to toggle source
# File lib/mmtrix/agent/http_clients/httpclient_wrappers.rb, line 37 def type "HTTPClient" end