code: public void encodeHeaders(int streamId, ByteBuf out, Http2Headers headers, SensitivityDetector sensitivityDetector)
              throws Http2Exception {
          if (ignoreMaxHeaderListSize) {
              encodeHeadersIgnoreMaxHeaderListSize(out, headers, sensitivityDetector);
          } else {
              encodeHeadersEnforceMaxHeaderListSize(streamId, out, headers, sensitivityDetector);
          }
      }
docs: Encode the header field into the header block.
  
  <strong>The given {@link CharSequence}s must be immutable!</strong>