function getRequestURL(req) {
  // Pseudo API
  if (typeof req.getURL === "function") {
    return req.getURL();
  }

  return req.url;
}
@template {IncomingMessage & ExpectedIncomingMessage} Request
@param {Request} req req
@returns {string | undefined} request URL