docs: function getHostname(origUrl?: string): null | string {
    const url = getUrlParts(origUrl);
    if (!url) {
      return null;
    }
    const port = url.port ? `:${url.port}` : "";
    return `${url.hostname}${port}`;
  }