simpleRequestWithOrigins() — netty Function Reference
Architecture documentation for the simpleRequestWithOrigins() function in CorsHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f44b88ed_ac75_7cf8_1908_3748f0a25f80["simpleRequestWithOrigins()"] e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"] f44b88ed_ac75_7cf8_1908_3748f0a25f80 -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d style f44b88ed_ac75_7cf8_1908_3748f0a25f80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 96–110
@Test
public void simpleRequestWithOrigins() {
final String origin1 = "http://localhost:8888";
final String origin2 = "https://localhost:8888";
final String[] origins = {origin1, origin2};
final HttpResponse response1 = simpleRequest(forOrigins(origins).build(), origin1);
assertEquals(origin1, response1.headers().get(ACCESS_CONTROL_ALLOW_ORIGIN));
assertNull(response1.headers().get(ACCESS_CONTROL_ALLOW_HEADERS));
assertTrue(ReferenceCountUtil.release(response1));
final HttpResponse response2 = simpleRequest(forOrigins(origins).build(), origin2);
assertEquals(origin2, response2.headers().get(ACCESS_CONTROL_ALLOW_ORIGIN));
assertNull(response2.headers().get(ACCESS_CONTROL_ALLOW_HEADERS));
assertTrue(ReferenceCountUtil.release(response2));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does simpleRequestWithOrigins() do?
simpleRequestWithOrigins() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is simpleRequestWithOrigins() defined?
simpleRequestWithOrigins() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 96.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free