def gzip_isClientPrefered(headers_in): h = headers_in.get('Accept-Encoding') if h: return cgiext.gzip_isClientPrefered(h)
def gzip_isClientPrefer(self): h = self._req.environ.get('HTTP_ACCEPT_ENCODING') if h: return cgiext.gzip_isClientPrefered(h) else: return False