Home / Function/ shortCircuitWithoutConnectionShouldStayOpen() — netty Function Reference

shortCircuitWithoutConnectionShouldStayOpen() — netty Function Reference

Architecture documentation for the shortCircuitWithoutConnectionShouldStayOpen() function in CorsHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7ea47c9a_a11f_184b_dbac_43be00956bcd["shortCircuitWithoutConnectionShouldStayOpen()"]
  e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"]
  7ea47c9a_a11f_184b_dbac_43be00956bcd -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d
  style 7ea47c9a_a11f_184b_dbac_43be00956bcd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 346–361

    @Test
    public void shortCircuitWithoutConnectionShouldStayOpen() {
        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");

        assertFalse(channel.writeInbound(request));
        final HttpResponse response = channel.readOutbound();
        assertTrue(HttpUtil.isKeepAlive(response));

        assertTrue(channel.isOpen());
        assertEquals(FORBIDDEN, response.status());
        assertTrue(ReferenceCountUtil.release(response));
        assertFalse(channel.finish());
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free