code: function createConnection(port, host, options) {
    if (isObject(port)) {
      options = port;
    }
    else if (isObject(host)) {
      options = host;
    }
    else if (isObject(options)) {
      options = options;
    }
    else {
      options = {};
    }
  
    if (isNumber(port)) {
      options.port = port;
    }
  
    if (isString(host)) {
      options.host = host;
    }
  
    debug('createConnection', options);
    return tls.connect(options);
  }
docs: HTTPS agents.