code: def add_etag(self, overwrite=False, weak=False):
          
          if overwrite or "etag" not in self.headers:
              self.set_etag(generate_etag(self.get_data()), weak)
docs: Add an etag for the current response if there is none yet.