simpleRequestCustomHeaders() — netty Function Reference
Architecture documentation for the simpleRequestCustomHeaders() function in CorsHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD febad2bb_d589_95dd_b4be_ba3e4ac1ac5a["simpleRequestCustomHeaders()"] e946b2e4_b243_053e_5c0a_3d1a9a50042d["CorsHandlerTest"] febad2bb_d589_95dd_b4be_ba3e4ac1ac5a -->|defined in| e946b2e4_b243_053e_5c0a_3d1a9a50042d style febad2bb_d589_95dd_b4be_ba3e4ac1ac5a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java lines 256–264
@Test
public void simpleRequestCustomHeaders() {
final CorsConfig config = forAnyOrigin().exposeHeaders("custom1", "custom2").build();
final HttpResponse response = simpleRequest(config, "http://localhost:7777");
assertEquals("*", response.headers().get(ACCESS_CONTROL_ALLOW_ORIGIN));
assertThat(response.headers().get(ACCESS_CONTROL_EXPOSE_HEADERS)).contains("custom1");
assertThat(response.headers().get(ACCESS_CONTROL_EXPOSE_HEADERS)).contains("custom2");
assertTrue(ReferenceCountUtil.release(response));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does simpleRequestCustomHeaders() do?
simpleRequestCustomHeaders() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java.
Where is simpleRequestCustomHeaders() defined?
simpleRequestCustomHeaders() is defined in codec-http/src/test/java/io/netty/handler/codec/http/cors/CorsHandlerTest.java at line 256.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free