def METHOD_NAME(self):
    wsgi = isinstance(self.request, WSGIRequest)
    server_name = "unknown"
    server_version = ""
    server_name = self.request.get("SERVER_SOFTWARE")
    if server_name:
        if "ZServer" in server_name:
            server_name = "ZServer"
        elif "/" in server_name:
            server_name = server_name.split("/")[0]
        try:
            server = pkg_resources.get_distribution(server_name)
            server_version = server.version
        except Exception:
            warnings.warn(
                "Cannot find or parse version for %r"
                % self.request.get("SERVER_SOFTWARE"),
            )
    return {
        "wsgi": wsgi,
        "server_name": server_name,
        "version": server_version,
    }