function getResponseHeaders(res) {
  // Pseudo API
  if (typeof res.getResponseHeaders === "function") {
    return res.getResponseHeaders();
  }

  return res.getHeaderNames();
}
@template {ServerResponse & ExpectedServerResponse} Response
@param {Response} res res
@returns {string[]} header names