Home / Function/ preflightRequestWithCustomHeaders() — netty Function Reference

preflightRequestWithCustomHeaders() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a1162a4a_4700_a1a5_aab5_60ab14d92e11["preflightRequestWithCustomHeaders()"]
  e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"]
  a1162a4a_4700_a1a5_aab5_60ab14d92e11 -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d
  e60d18d8_fd23_cf06_216e_d68d84f411ae["assertValues()"]
  a1162a4a_4700_a1a5_aab5_60ab14d92e11 -->|calls| e60d18d8_fd23_cf06_216e_d68d84f411ae
  style a1162a4a_4700_a1a5_aab5_60ab14d92e11 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 182–194

    @Test
    public void preflightRequestWithCustomHeaders() {
        final String headerName = "CustomHeader";
        final String value1 = "value1";
        final String value2 = "value2";
        final CorsConfig config = forOrigin("http://localhost:8888")
                .preflightResponseHeader(headerName, value1, value2)
                .build();
        final HttpResponse response = preflightRequest(config, "http://localhost:8888", "content-type, xheader1");
        assertValues(response, headerName, value1, value2);
        assertEquals(ORIGIN.toString(), response.headers().get(VARY));
        assertTrue(ReferenceCountUtil.release(response));
    }

Domain

Subdomains

Frequently Asked Questions

What does preflightRequestWithCustomHeaders() do?
preflightRequestWithCustomHeaders() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is preflightRequestWithCustomHeaders() defined?
preflightRequestWithCustomHeaders() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 182.
What does preflightRequestWithCustomHeaders() call?
preflightRequestWithCustomHeaders() calls 1 function(s): assertValues.

Analyze Your Own Codebase

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

Try Supermodel Free