Home / Function/ testConnectionCloseHeaderHandledCorrectly() — netty Function Reference

testConnectionCloseHeaderHandledCorrectly() — netty Function Reference

Architecture documentation for the testConnectionCloseHeaderHandledCorrectly() function in HttpServerKeepAliveHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4a3ed746_2618_717d_f666_83698afee601["testConnectionCloseHeaderHandledCorrectly()"]
  be1dd72c_0689_de7f_2cae_50d18d342f5c["HttpServerKeepAliveHandlerTest"]
  4a3ed746_2618_717d_f666_83698afee601 -->|defined in| be1dd72c_0689_de7f_2cae_50d18d342f5c
  4a65f9df_769d_214b_e196_3b450aa1375b["setupMessageLength()"]
  4a3ed746_2618_717d_f666_83698afee601 -->|calls| 4a65f9df_769d_214b_e196_3b450aa1375b
  style 4a3ed746_2618_717d_f666_83698afee601 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/HttpServerKeepAliveHandlerTest.java lines 117–131

    @ParameterizedTest
    @MethodSource("connectionCloseProvider")
    public void testConnectionCloseHeaderHandledCorrectly(
            HttpVersion httpVersion, HttpResponseStatus responseStatus, int setSelfDefinedMessageLength) {
        HttpResponse response = new DefaultFullHttpResponse(httpVersion, responseStatus);
        response.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);
        setupMessageLength(response, setSelfDefinedMessageLength);

        channel.writeAndFlush(response);
        HttpResponse writtenResponse = channel.readOutbound();

        assertFalse(channel.isOpen());
        ReferenceCountUtil.release(writtenResponse);
        assertFalse(channel.finishAndReleaseAll());
    }

Domain

Subdomains

Frequently Asked Questions

What does testConnectionCloseHeaderHandledCorrectly() do?
testConnectionCloseHeaderHandledCorrectly() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpServerKeepAliveHandlerTest.java.
Where is testConnectionCloseHeaderHandledCorrectly() defined?
testConnectionCloseHeaderHandledCorrectly() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpServerKeepAliveHandlerTest.java at line 117.
What does testConnectionCloseHeaderHandledCorrectly() call?
testConnectionCloseHeaderHandledCorrectly() calls 1 function(s): setupMessageLength.

Analyze Your Own Codebase

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

Try Supermodel Free