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