Home / Function/ preflightDeleteRequestWithCustomHeaders() — netty Function Reference

preflightDeleteRequestWithCustomHeaders() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 122–133

    @Test
    public void preflightDeleteRequestWithCustomHeaders() {
        final CorsConfig config = forOrigin("http://localhost:8888")
                .allowedRequestMethods(GET, DELETE)
                .build();
        final HttpResponse response = preflightRequest(config, "http://localhost:8888", "content-type, xheader1");
        assertEquals("http://localhost:8888", response.headers().get(ACCESS_CONTROL_ALLOW_ORIGIN));
        assertThat(response.headers().get(ACCESS_CONTROL_ALLOW_METHODS)).contains("GET");
        assertThat(response.headers().get(ACCESS_CONTROL_ALLOW_METHODS)).contains("DELETE");
        assertEquals(ORIGIN.toString(), response.headers().get(VARY));
        assertTrue(ReferenceCountUtil.release(response));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free