shortCircuitWithConnectionCloseShouldClose() — netty Function Reference
Architecture documentation for the shortCircuitWithConnectionCloseShouldClose() function in CorsHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8439e47b_030d_3cf2_a6fd_66ce71c6d367["shortCircuitWithConnectionCloseShouldClose()"] e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"] 8439e47b_030d_3cf2_a6fd_66ce71c6d367 -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d style 8439e47b_030d_3cf2_a6fd_66ce71c6d367 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 363–379
@Test
public void shortCircuitWithConnectionCloseShouldClose() {
final CorsConfig config = forOrigin("http://localhost:8080").shortCircuit().build();
final EmbeddedChannel channel = new EmbeddedChannel(new CorsHandler(config));
final FullHttpRequest request = createHttpRequest(GET);
request.headers().set(ORIGIN, "http://localhost:8888");
request.headers().set(CONNECTION, CLOSE);
assertFalse(channel.writeInbound(request));
final HttpResponse response = channel.readOutbound();
assertFalse(HttpUtil.isKeepAlive(response));
assertFalse(channel.isOpen());
assertEquals(FORBIDDEN, response.status());
assertTrue(ReferenceCountUtil.release(response));
assertFalse(channel.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shortCircuitWithConnectionCloseShouldClose() do?
shortCircuitWithConnectionCloseShouldClose() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is shortCircuitWithConnectionCloseShouldClose() defined?
shortCircuitWithConnectionCloseShouldClose() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 363.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free