Home / Function/ testCustomMessageEmptyLastContent() — netty Function Reference

testCustomMessageEmptyLastContent() — netty Function Reference

Architecture documentation for the testCustomMessageEmptyLastContent() function in HttpRequestEncoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  925eb9f3_6d56_66d6_d8cf_ad3c22d97cbe["testCustomMessageEmptyLastContent()"]
  fcb9abc3_d47c_ca31_1af5_a7b8b31112c3["HttpRequestEncoderTest"]
  925eb9f3_6d56_66d6_d8cf_ad3c22d97cbe -->|defined in| fcb9abc3_d47c_ca31_1af5_a7b8b31112c3
  a3b8b731_914d_8ed9_3b0b_470098be99a8["CustomFullHttpRequest()"]
  925eb9f3_6d56_66d6_d8cf_ad3c22d97cbe -->|calls| a3b8b731_914d_8ed9_3b0b_470098be99a8
  ef6ea20f_1d89_e7fb_ed43_ea8b34830807["release()"]
  925eb9f3_6d56_66d6_d8cf_ad3c22d97cbe -->|calls| ef6ea20f_1d89_e7fb_ed43_ea8b34830807
  style 925eb9f3_6d56_66d6_d8cf_ad3c22d97cbe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java lines 297–309

    @Test
    public void testCustomMessageEmptyLastContent() {
        HttpRequestEncoder encoder = new HttpRequestEncoder();
        EmbeddedChannel channel = new EmbeddedChannel(encoder);
        HttpRequest customMsg = new CustomFullHttpRequest(HttpVersion.HTTP_1_1,
                HttpMethod.POST, "/", Unpooled.EMPTY_BUFFER);
        assertTrue(channel.writeOutbound(customMsg));
        // Ensure we only produce ByteBuf instances.
        ByteBuf head = channel.readOutbound();
        assertTrue(head.release());
        assertNull(channel.readOutbound());
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

What does testCustomMessageEmptyLastContent() do?
testCustomMessageEmptyLastContent() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java.
Where is testCustomMessageEmptyLastContent() defined?
testCustomMessageEmptyLastContent() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestEncoderTest.java at line 297.
What does testCustomMessageEmptyLastContent() call?
testCustomMessageEmptyLastContent() calls 2 function(s): CustomFullHttpRequest, release.

Analyze Your Own Codebase

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

Try Supermodel Free