testConnectionCloseHeaderHandledCorrectlyForVoidPromise() — netty Function Reference
Architecture documentation for the testConnectionCloseHeaderHandledCorrectlyForVoidPromise() function in HttpServerKeepAliveHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 15a8686a_c897_0b73_fdf2_d3a0fee49e7b["testConnectionCloseHeaderHandledCorrectlyForVoidPromise()"] be1dd72c_0689_de7f_2cae_50d18d342f5c["HttpServerKeepAliveHandlerTest"] 15a8686a_c897_0b73_fdf2_d3a0fee49e7b -->|defined in| be1dd72c_0689_de7f_2cae_50d18d342f5c 4a65f9df_769d_214b_e196_3b450aa1375b["setupMessageLength()"] 15a8686a_c897_0b73_fdf2_d3a0fee49e7b -->|calls| 4a65f9df_769d_214b_e196_3b450aa1375b style 15a8686a_c897_0b73_fdf2_d3a0fee49e7b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpServerKeepAliveHandlerTest.java lines 133–147
@ParameterizedTest
@MethodSource("connectionCloseProvider")
public void testConnectionCloseHeaderHandledCorrectlyForVoidPromise(
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, channel.voidPromise());
HttpResponse writtenResponse = channel.readOutbound();
assertFalse(channel.isOpen());
ReferenceCountUtil.release(writtenResponse);
assertFalse(channel.finishAndReleaseAll());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testConnectionCloseHeaderHandledCorrectlyForVoidPromise() do?
testConnectionCloseHeaderHandledCorrectlyForVoidPromise() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpServerKeepAliveHandlerTest.java.
Where is testConnectionCloseHeaderHandledCorrectlyForVoidPromise() defined?
testConnectionCloseHeaderHandledCorrectlyForVoidPromise() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpServerKeepAliveHandlerTest.java at line 133.
What does testConnectionCloseHeaderHandledCorrectlyForVoidPromise() call?
testConnectionCloseHeaderHandledCorrectlyForVoidPromise() 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