class Mmtrix::Agent::HTTPClients::CurbRequest
Public Class Methods
new( curlobj )
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 10 def initialize( curlobj ) @curlobj = curlobj end
Public Instance Methods
[]( key )
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 26 def []( key ) @curlobj.headers[ key ] end
[]=( key, value )
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 30 def []=( key, value ) @curlobj.headers[ key ] = value end
host()
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 18 def host self["host"] || self["Host"] || self.uri.host end
method()
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 22 def method @curlobj._nr_http_verb end
type()
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 14 def type 'Curb' end
uri()
click to toggle source
# File lib/mmtrix/agent/http_clients/curb_wrappers.rb, line 34 def uri @uri ||= Mmtrix::Agent::HTTPClients::URIUtil.parse_url(@curlobj.url) end