testDecodeCountsNamesOnlyOnce() — netty Function Reference
Architecture documentation for the testDecodeCountsNamesOnlyOnce() function in HpackDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1736e167_5cac_c63c_2d3f_ef0f65c8a9a4["testDecodeCountsNamesOnlyOnce()"] 499468ca_3853_024b_2b80_17090ef6cd43["HpackDecoderTest"] 1736e167_5cac_c63c_2d3f_ef0f65c8a9a4 -->|defined in| 499468ca_3853_024b_2b80_17090ef6cd43 47ac4151_0b50_9884_0d18_472d1c51065d["decode()"] 1736e167_5cac_c63c_2d3f_ef0f65c8a9a4 -->|calls| 47ac4151_0b50_9884_0d18_472d1c51065d style 1736e167_5cac_c63c_2d3f_ef0f65c8a9a4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java lines 610–629
@Test
public void testDecodeCountsNamesOnlyOnce() throws Http2Exception {
ByteBuf in = Unpooled.buffer(200);
try {
hpackDecoder.setMaxHeaderListSize(3500);
HpackEncoder hpackEncoder = new HpackEncoder(true);
// encode headers that are slightly larger than maxHeaderListSize
Http2Headers toEncode = new DefaultHttp2Headers();
toEncode.add(String.format("%03000d", 0).replace('0', 'f'), "value");
toEncode.add("accept", "value");
hpackEncoder.encodeHeaders(1, in, toEncode, NEVER_SENSITIVE);
Http2Headers decoded = new DefaultHttp2Headers();
hpackDecoder.decode(1, in, decoded, true);
assertEquals(2, decoded.size());
} finally {
in.release();
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testDecodeCountsNamesOnlyOnce() do?
testDecodeCountsNamesOnlyOnce() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java.
Where is testDecodeCountsNamesOnlyOnce() defined?
testDecodeCountsNamesOnlyOnce() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackDecoderTest.java at line 610.
What does testDecodeCountsNamesOnlyOnce() call?
testDecodeCountsNamesOnlyOnce() calls 1 function(s): decode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free