Home / Function/ testManyHeaderCombinations() — netty Function Reference

testManyHeaderCombinations() — netty Function Reference

Architecture documentation for the testManyHeaderCombinations() function in HpackEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0ddbcc11_a023_ae99_a0d4_a5f7a1ae8c35["testManyHeaderCombinations()"]
  a8203e54_7e3c_740d_20fe_825ed86c66af["HpackEncoderTest"]
  0ddbcc11_a023_ae99_a0d4_a5f7a1ae8c35 -->|defined in| a8203e54_7e3c_740d_20fe_825ed86c66af
  5563ab2a_0de3_cdda_efa2_2d872b636b0a["setMaxTableSize()"]
  0ddbcc11_a023_ae99_a0d4_a5f7a1ae8c35 -->|calls| 5563ab2a_0de3_cdda_efa2_2d872b636b0a
  ad6881e7_5ce2_efbc_3efd_6573bc754e63["verifyRoundTrip()"]
  0ddbcc11_a023_ae99_a0d4_a5f7a1ae8c35 -->|calls| ad6881e7_5ce2_efbc_3efd_6573bc754e63
  style 0ddbcc11_a023_ae99_a0d4_a5f7a1ae8c35 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/HpackEncoderTest.java lines 190–205

    @Test
    public void testManyHeaderCombinations() throws Http2Exception {
        final Random r = new Random(0);
        for (int i = 0; i < 50000; i++) {
            if (r.nextInt(10) == 0) {
                setMaxTableSize(r.nextBoolean() ? 0 : r.nextInt(4096));
            }
            verifyRoundTrip(new DefaultHttp2Headers()
              .add("k" + r.nextInt(20), "x" + r.nextInt(500))
              .add(":method", r.nextBoolean() ? "GET" : "POST")
              .add(":path", "/dev/null")
              .add("accept-language", String.valueOf(r.nextBoolean()))
            );
            buf.clear();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testManyHeaderCombinations() do?
testManyHeaderCombinations() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackEncoderTest.java.
Where is testManyHeaderCombinations() defined?
testManyHeaderCombinations() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/HpackEncoderTest.java at line 190.
What does testManyHeaderCombinations() call?
testManyHeaderCombinations() calls 2 function(s): setMaxTableSize, verifyRoundTrip.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free