code: function toAbsoluteUrl(url, host) {
  
                      return isAbsolute(url) ? url : (startWithSlash(url) ? host + url : host + '/' + url);
  
                  }
docs: /*
  Prepend a '/' to relative url used for api entry point since they are resolved from
  the root
  
  @param url
  @param host
  @returns {string} an absolute url