Home / Function/ preflightRequestWithValueGenerator() — netty Function Reference

preflightRequestWithValueGenerator() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 210–223

    @Test
    public void preflightRequestWithValueGenerator() {
        final CorsConfig config = forOrigin("http://localhost:8888")
                .preflightResponseHeader("GenHeader", new Callable<String>() {
                    @Override
                    public String call() throws Exception {
                        return "generatedValue";
                    }
                }).build();
        final HttpResponse response = preflightRequest(config, "http://localhost:8888", "content-type, xheader1");
        assertEquals("generatedValue", response.headers().get(of("GenHeader")));
        assertEquals(ORIGIN.toString(), response.headers().get(VARY));
        assertTrue(ReferenceCountUtil.release(response));
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free