docs: def gzipped(fn):
      """
      Decorator used to pack data returned from the Bottle function to GZIP.
  
      The decorator adds GZIP compression only if the browser accepts GZIP in
      it's ``Accept-Encoding`` headers. In that case, also the correct
      ``Content-Encoding`` is used.
      """
      def gzipped_wrapper(*args, **kwargs):
          accepted_encoding = request.get_header("Accept-Encoding")
  
          if not accepted_encoding or "gzip" not in accepted_encoding:
              return fn(*args, **kwargs)
  
          response.set_header("Content-Encoding", "gzip")
  
          return to_gzipped_file(fn(*args, **kwargs))
  
      return gzipped_wrapper