def ServeStatic(self, path):
    static_aff4_prefix = config_lib.CONFIG["Frontend.static_aff4_prefix"]
    aff4_path = rdfvalue.RDFURN(static_aff4_prefix).Add(path)
    try:
      logging.info("Serving %s", aff4_path)
      fd = aff4.FACTORY.Open(aff4_path, token=aff4.FACTORY.root_token)
      while True:
        data = fd.Read(self.AFF4_READ_BLOCK_SIZE)
        if not data:
          break

        self.Send(data)
    except (__HOLE__, AttributeError):
      self.Send("", status=404)
dataset/ETHPy150Open google/grr/grr/tools/http_server.py/GRRHTTPServerHandler.ServeStatic