@Test public void testLiteralWithoutIndexingWithEmptyName() throws Http2Exception { decode("000005" + hex("value")); verify(mockHeaders, times(1)).add(EMPTY_STRING, of("value")); }
public void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception { Http2HeadersSink sink = new Http2HeadersSink(headers, maxHeaderListSize); decode(in, sink, validateHeaders); if (sink.exceededMaxLength()) { headerListSizeExceeded(streamId, maxHeaderListSize, true); } }
HpackDecoder { public void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception { Http2HeadersSink sink = new Http2HeadersSink(headers, maxHeaderListSize); decode(in, sink, validateHeaders); if (sink.exceededMaxLength()) { headerListSizeExceeded(streamId, maxHeaderListSize, true); } } }
HpackDecoder { public void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception { Http2HeadersSink sink = new Http2HeadersSink(headers, maxHeaderListSize); decode(in, sink, validateHeaders); if (sink.exceededMaxLength()) { headerListSizeExceeded(streamId, maxHeaderListSize, true); } } HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity);   HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity, int maxHeaderTableSize); }
HpackDecoder { public void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception { Http2HeadersSink sink = new Http2HeadersSink(headers, maxHeaderListSize); decode(in, sink, validateHeaders); if (sink.exceededMaxLength()) { headerListSizeExceeded(streamId, maxHeaderListSize, true); } } HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity);   HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity, int maxHeaderTableSize); void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders); void setMaxHeaderTableSize(long maxHeaderTableSize); @Deprecated void setMaxHeaderListSize(long maxHeaderListSize, long maxHeaderListSizeGoAway); void setMaxHeaderListSize(long maxHeaderListSize); long getMaxHeaderListSize(); long getMaxHeaderTableSize(); }
HpackDecoder { public void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) throws Http2Exception { Http2HeadersSink sink = new Http2HeadersSink(headers, maxHeaderListSize); decode(in, sink, validateHeaders); if (sink.exceededMaxLength()) { headerListSizeExceeded(streamId, maxHeaderListSize, true); } } HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity);   HpackDecoder(long maxHeaderListSize, int initialHuffmanDecodeCapacity, int maxHeaderTableSize); void decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders); void setMaxHeaderTableSize(long maxHeaderTableSize); @Deprecated void setMaxHeaderListSize(long maxHeaderListSize, long maxHeaderListSizeGoAway); void setMaxHeaderListSize(long maxHeaderListSize); long getMaxHeaderListSize(); long getMaxHeaderTableSize();  }