# File lib/protocols/httpcli2.rb, line 218
218:                 def self.connect *args
219:                         if args.length == 2
220:                                 args = {:host=>args[0], :port=>args[1]}
221:                         else
222:                                 args = args.first
223:                         end
224: 
225:                         h,prt,ssl = args[:host], Integer(args[:port]), (args[:tls] || args[:ssl])
226:                         conn = EM.connect( h, prt, self )
227:                         # TODO, start_tls if necessary
228:                         conn.set_default_host_header( h, prt, ssl )
229:                         conn
230:                 end