code: def _shrink(self):
          
          cursize = self._current_size
          while cursize > self._maxsize:
              name, value = self.dynamic_entries.pop()
              cursize -= table_entry_size(name, value)
          self._current_size = cursize
docs: Shrinks the dynamic table to be at or below maxsize