preflightRequestWithNullOrigin() — netty Function Reference
Architecture documentation for the preflightRequestWithNullOrigin() function in CorsHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9806ec27_a285_5218_c3ad_d5cd8d6f661d["preflightRequestWithNullOrigin()"] e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"] 9806ec27_a285_5218_c3ad_d5cd8d6f661d -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d style 9806ec27_a285_5218_c3ad_d5cd8d6f661d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 225–236
@Test
public void preflightRequestWithNullOrigin() {
final String origin = "null";
final CorsConfig config = forOrigin(origin)
.allowNullOrigin()
.allowCredentials()
.build();
final HttpResponse response = preflightRequest(config, origin, "content-type, xheader1");
assertEquals("null", response.headers().get(ACCESS_CONTROL_ALLOW_ORIGIN));
assertEquals("true", response.headers().get(ACCESS_CONTROL_ALLOW_CREDENTIALS));
assertTrue(ReferenceCountUtil.release(response));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does preflightRequestWithNullOrigin() do?
preflightRequestWithNullOrigin() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is preflightRequestWithNullOrigin() defined?
preflightRequestWithNullOrigin() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 225.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free