def METHOD_NAME(self) -> dict[str, str]:
    headers: dict[str, str] = super().METHOD_NAME()
    if self.ogc_server.type == main.OGCSERVER_TYPE_QGISSERVER:
        if self.request.matched_route.name.endswith("_path"):
            headers["X-Qgis-Service-Url"] = self.request.current_route_url(path=[], _query={})
        else:
            headers["X-Qgis-Service-Url"] = self.request.current_route_url(
                _query={"ogcserver": self.ogc_server.name}
            )
    return headers