Class: Rufus::Jig::Http

Inherits:
HttpCore show all
Defined in:
lib/rufus/jig/adapters/em.rb,
lib/rufus/jig/adapters/net.rb,
lib/rufus/jig/adapters/patron.rb,
lib/rufus/jig/adapters/net_persistent.rb

Instance Attribute Summary

Attributes inherited from HttpCore

#_fragment, #_path, #_query, #cache, #error_class, #host, #last_response, #options, #port, #scheme

Instance Method Summary collapse

Methods inherited from HttpCore

#delete, #get, #post, #put, #uri

Constructor Details

#initialize(*args) ⇒ Http

Returns a new instance of Http.



53
54
55
56
57
58
# File 'lib/rufus/jig/adapters/em.rb', line 53

def initialize(*args)

  super(*args)

  @options[:user_agent] ||= "#{self.class} #{Rufus::Jig::VERSION} (em)"
end

Instance Method Details

#close ⇒ Object

Closes the connection



54
55
56
57
# File 'lib/rufus/jig/adapters/net_persistent.rb', line 54

def close

  # nothing to do
end

#variant ⇒ Object



60
61
62
# File 'lib/rufus/jig/adapters/em.rb', line 60

def variant
  :em
end