Home / Function/ testUpgradeEmptyFullResponseWithTrailers() — netty Function Reference

testUpgradeEmptyFullResponseWithTrailers() — netty Function Reference

Architecture documentation for the testUpgradeEmptyFullResponseWithTrailers() function in Http3FrameToHttpObjectCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  44fcb0eb_9f30_c9fb_38c2_b7504af78e65["testUpgradeEmptyFullResponseWithTrailers()"]
  0358625f_2420_3fbe_f6d7_5ee2577ca675["Http3FrameToHttpObjectCodecTest"]
  44fcb0eb_9f30_c9fb_38c2_b7504af78e65 -->|defined in| 0358625f_2420_3fbe_f6d7_5ee2577ca675
  style 44fcb0eb_9f30_c9fb_38c2_b7504af78e65 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodecTest.java lines 149–165

    @Test
    public void testUpgradeEmptyFullResponseWithTrailers() {
        EmbeddedQuicStreamChannel ch = new EmbeddedQuicStreamChannel(new Http3FrameToHttpObjectCodec(true));
        FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
        HttpHeaders trailers = response.trailingHeaders();
        trailers.set("key", "value");
        assertTrue(ch.writeOutbound(response));

        Http3HeadersFrame headersFrame = ch.readOutbound();
        assertThat(headersFrame.headers().status().toString(), is("200"));

        Http3HeadersFrame trailersFrame = ch.readOutbound();
        assertThat(trailersFrame.headers().get("key").toString(), is("value"));
        assertTrue(ch.isOutputShutdown());

        assertFalse(ch.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testUpgradeEmptyFullResponseWithTrailers() do?
testUpgradeEmptyFullResponseWithTrailers() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodecTest.java.
Where is testUpgradeEmptyFullResponseWithTrailers() defined?
testUpgradeEmptyFullResponseWithTrailers() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodecTest.java at line 149.

Analyze Your Own Codebase

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

Try Supermodel Free