Home / Function/ preflightRequestWithDefaultHeaders() — netty Function Reference

preflightRequestWithDefaultHeaders() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 151–159

    @Test
    public void preflightRequestWithDefaultHeaders() {
        final CorsConfig config = forOrigin("http://localhost:8888").build();
        final HttpResponse response = preflightRequest(config, "http://localhost:8888", "content-type, xheader1");
        assertEquals("0", response.headers().get(CONTENT_LENGTH));
        assertNotNull(response.headers().get(DATE));
        assertEquals(ORIGIN.toString(), response.headers().get(VARY));
        assertTrue(ReferenceCountUtil.release(response));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free