code: public void checkSize(int length, boolean huffman) throws HpackException.SessionException {
          // Apply a huffman fudge factor
          if (huffman)
              length = (length * 4) / 3;
          if ((_size + length) > _maxSize)
              throw new HpackException.SessionException("Header too large %d > %d", _size + length, _maxSize);
      }
docs: Check that the max size will not be exceeded.
  
  @param length  the length
  @param huffman the huffman name
  @throws HpackException.SessionException in case of size errors