initChannel() — netty Function Reference
Architecture documentation for the initChannel() function in HttpCorsServerInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1d26cfc5_0ba4_d279_b820_08e5c8173506["initChannel()"] 1cbf5cd6_d2c2_23a9_f038_bac977e4f1f2["HttpCorsServerInitializer"] 1d26cfc5_0ba4_d279_b820_08e5c8173506 -->|defined in| 1cbf5cd6_d2c2_23a9_f038_bac977e4f1f2 style 1d26cfc5_0ba4_d279_b820_08e5c8173506 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/http/cors/HttpCorsServerInitializer.java lines 81–94
@Override
public void initChannel(SocketChannel ch) {
CorsConfig corsConfig = CorsConfigBuilder.forAnyOrigin().allowNullOrigin().allowCredentials().build();
ChannelPipeline pipeline = ch.pipeline();
if (sslCtx != null) {
pipeline.addLast(sslCtx.newHandler(ch.alloc()));
}
pipeline.addLast(new HttpResponseEncoder());
pipeline.addLast(new HttpRequestDecoder());
pipeline.addLast(new HttpObjectAggregator(65536));
pipeline.addLast(new ChunkedWriteHandler());
pipeline.addLast(new CorsHandler(corsConfig));
pipeline.addLast(new OkResponseHandler());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does initChannel() do?
initChannel() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http/cors/HttpCorsServerInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/http/cors/HttpCorsServerInitializer.java at line 81.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free