Home / Function/ priorKnowledge() — netty Function Reference

priorKnowledge() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandlerTest.java lines 100–118

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

        channel.writeInbound(Http2CodecUtil.connectionPrefaceBuf());

        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 priorKnowledge() do?
priorKnowledge() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandlerTest.java.
Where is priorKnowledge() defined?
priorKnowledge() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/CleartextHttp2ServerUpgradeHandlerTest.java at line 100.
What does priorKnowledge() call?
priorKnowledge() 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