Home / Function/ testUpgradeHeaders() — netty Function Reference

testUpgradeHeaders() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2StreamFrameToHttpObjectCodecTest.java lines 178–190

    @Test
    public void testUpgradeHeaders() throws Exception {
        EmbeddedChannel ch = new EmbeddedChannel(new Http2StreamFrameToHttpObjectCodec(true));
        HttpResponse response = new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
        assertTrue(ch.writeOutbound(response));

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free