Home / Function/ testLastResponseWithEmptyHeaderAndEmptyContent() — netty Function Reference

testLastResponseWithEmptyHeaderAndEmptyContent() — netty Function Reference

Architecture documentation for the testLastResponseWithEmptyHeaderAndEmptyContent() function in HttpResponseDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0e4fd1ca_77e7_7dd0_cbed_711b295bc5c2["testLastResponseWithEmptyHeaderAndEmptyContent()"]
  90546a8c_51c4_a9dc_b6e8_695d29269596["HttpResponseDecoderTest"]
  0e4fd1ca_77e7_7dd0_cbed_711b295bc5c2 -->|defined in| 90546a8c_51c4_a9dc_b6e8_695d29269596
  style 0e4fd1ca_77e7_7dd0_cbed_711b295bc5c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java lines 495–512

    @Test
    public void testLastResponseWithEmptyHeaderAndEmptyContent() {
        EmbeddedChannel ch = new EmbeddedChannel(new HttpResponseDecoder());
        ch.writeInbound(Unpooled.copiedBuffer("HTTP/1.1 200 OK\r\n\r\n", CharsetUtil.US_ASCII));

        HttpResponse res = ch.readInbound();
        assertSame(HttpVersion.HTTP_1_1, res.protocolVersion());
        assertEquals(HttpResponseStatus.OK, res.status());
        assertNull(ch.readInbound());

        assertTrue(ch.finish());

        LastHttpContent content = ch.readInbound();
        assertFalse(content.content().isReadable());
        content.release();

        assertNull(ch.readInbound());
    }

Domain

Subdomains

Frequently Asked Questions

What does testLastResponseWithEmptyHeaderAndEmptyContent() do?
testLastResponseWithEmptyHeaderAndEmptyContent() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java.
Where is testLastResponseWithEmptyHeaderAndEmptyContent() defined?
testLastResponseWithEmptyHeaderAndEmptyContent() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpResponseDecoderTest.java at line 495.

Analyze Your Own Codebase

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

Try Supermodel Free