code: function buildUrlFromConfig(configObj) {
    if (!configObj) throw new Error('[utils.buildUrlFromConfig]: config object must cannot be null');
    if (!configObj.host) throw new Error('[utils.buildUrlFromConfig]: object must contain a \'host\' property');
    return buildUrl(configObj.protocol, canonicalHost(configObj.host), configObj.port, configObj.type);
  }
docs: Builds a URL
  
  @param {object} configObj Object containing protocol, host, and port to be used to construct the url.
  * protocol      {String}    (optional) The URL protocol, defaults to http.
  * host          {String}    (required) The URL host.
  * port          {String}    (optional) The URL port, default to empty string.
  @returns {string} the constructued URL, with defaults