Home / Function/ priorKnowledgeInFragments() — netty Function Reference

priorKnowledgeInFragments() — netty Function Reference

Architecture documentation for the priorKnowledgeInFragments() function in CleartextHttp2ServerUpgradeHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aa6eb3a6_753d_44bf_3286_41de56114e9e["priorKnowledgeInFragments()"]
  24405e75_fc53_b81a_62ef_04cb80649864["CleartextHttp2ServerUpgradeHandlerTest"]
  aa6eb3a6_753d_44bf_3286_41de56114e9e -->|defined in| 24405e75_fc53_b81a_62ef_04cb80649864
  0d4ba23e_9249_2941_979a_64a6d32d3fff["setUpServerChannel()"]
  aa6eb3a6_753d_44bf_3286_41de56114e9e -->|calls| 0d4ba23e_9249_2941_979a_64a6d32d3fff
  style aa6eb3a6_753d_44bf_3286_41de56114e9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandlerTest.java lines 153–171

    @Test
    public void priorKnowledgeInFragments() throws Exception {
        setUpServerChannel();

        ByteBuf connectionPreface = Http2CodecUtil.connectionPrefaceBuf();
        assertFalse(channel.writeInbound(connectionPreface.readBytes(5), connectionPreface));

        ByteBuf settingsFrame = settingsFrameBuf();
        assertFalse(channel.writeInbound(settingsFrame));

        assertEquals(1, userEvents.size());
        assertTrue(userEvents.get(0) instanceof PriorKnowledgeUpgradeEvent);

        assertEquals(100, http2ConnectionHandler.connection().local().maxActiveStreams());
        assertEquals(65535, http2ConnectionHandler.connection().local().flowController().initialWindowSize());

        verify(frameListener).onSettingsRead(
                any(ChannelHandlerContext.class), eq(expectedSettings()));
    }

Domain

Subdomains

Frequently Asked Questions

What does priorKnowledgeInFragments() do?
priorKnowledgeInFragments() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandlerTest.java.
Where is priorKnowledgeInFragments() defined?
priorKnowledgeInFragments() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandlerTest.java at line 153.
What does priorKnowledgeInFragments() call?
priorKnowledgeInFragments() calls 1 function(s): setUpServerChannel.

Analyze Your Own Codebase

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

Try Supermodel Free