preflightRequestWithCustomHeader() — netty Function Reference
Architecture documentation for the preflightRequestWithCustomHeader() function in CorsHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 73b8a6f7_d151_ade1_0aa5_6f66442ff9b4["preflightRequestWithCustomHeader()"] e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"] 73b8a6f7_d151_ade1_0aa5_6f66442ff9b4 -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d style 73b8a6f7_d151_ade1_0aa5_6f66442ff9b4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 161–171
@Test
public void preflightRequestWithCustomHeader() {
final CorsConfig config = forOrigin("http://localhost:8888")
.preflightResponseHeader("CustomHeader", "somevalue")
.build();
final HttpResponse response = preflightRequest(config, "http://localhost:8888", "content-type, xheader1");
assertEquals("somevalue", response.headers().get(of("CustomHeader")));
assertEquals(ORIGIN.toString(), response.headers().get(VARY));
assertEquals("0", response.headers().get(CONTENT_LENGTH));
assertTrue(ReferenceCountUtil.release(response));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does preflightRequestWithCustomHeader() do?
preflightRequestWithCustomHeader() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is preflightRequestWithCustomHeader() defined?
preflightRequestWithCustomHeader() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 161.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free