Home / Function/ testUpgradeNonEmptyFullResponse() — netty Function Reference

testUpgradeNonEmptyFullResponse() — netty Function Reference

Architecture documentation for the testUpgradeNonEmptyFullResponse() function in Http2StreamFrameToHttpObjectCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  19716932_e937_50e6_edbc_c4926c32ae85["testUpgradeNonEmptyFullResponse()"]
  f77629dd_309f_f368_8220_46ddc65ad871["Http2StreamFrameToHttpObjectCodecTest"]
  19716932_e937_50e6_edbc_c4926c32ae85 -->|defined in| f77629dd_309f_f368_8220_46ddc65ad871
  style 19716932_e937_50e6_edbc_c4926c32ae85 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 107–127

    @Test
    public void testUpgradeNonEmptyFullResponse() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
        ByteBuf hello = Unpooled.copiedBuffer("hello world", CharsetUtil.UTF_8);
        assertTrue(ch.writeOutbound(new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK, hello)));

        Http2HeadersFrame headersFrame = ch.readOutbound();
        assertEquals("200", headersFrame.headers().status().toString());
        assertFalse(headersFrame.isEndStream());

        Http2DataFrame dataFrame = ch.readOutbound();
        try {
            assertEquals("hello world", dataFrame.content().toString(CharsetUtil.UTF_8));
            assertTrue(dataFrame.isEndStream());
        } finally {
            dataFrame.release();
        }

        assertNull(ch.readOutbound());
        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testUpgradeNonEmptyFullResponse() do?
testUpgradeNonEmptyFullResponse() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java.
Where is testUpgradeNonEmptyFullResponse() defined?
testUpgradeNonEmptyFullResponse() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java at line 107.

Analyze Your Own Codebase

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

Try Supermodel Free