code: public void clear() {
      while (tail != head) {
        headerFields[tail++] = null;
        if (tail == headerFields.length) {
          tail = 0;
        }
      }
      head = 0;
      tail = 0;
      size = 0;
    }
docs: Remove all entries from the dynamic table.