         # File lib/protocols/httpcli2.rb, line 237
    237:                 def self.connect *args
    238:                         if args.length == 2
    239:                                 args = {:host=>args[0], :port=>args[1]}
    240:                         else
    241:                                 args = args.first
    242:                         end
    243:
    244:                         h,prt,ssl = args[:host], Integer(args[:port]), (args[:tls] || args[:ssl])
    245:                         conn = EM.connect( h, prt, self )
    246:       conn.start_tls if ssl
    247:                         conn.set_default_host_header( h, prt, ssl )
    248:                         conn
    249:                 end