Method: Auger::Http#open
- Defined in:
- lib/auger/plugin/http.rb
#open(host, options) ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'lib/auger/plugin/http.rb', line 51 def open(host, ) http = Net::HTTP.new(host, [:port]) http.use_ssl = [:ssl] http.verify_mode = OpenSSL::SSL::VERIFY_NONE if [:insecure] http.open_timeout = [:timeout] http.read_timeout = [:timeout] http.start http end |