switchToHttp() — netty Function Reference
Architecture documentation for the switchToHttp() function in PortUnificationServerHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 640d12e2_2b98_1048_fac3_cf3977c9655d["switchToHttp()"] 0035cd98_439e_cdb1_2619_abb4aba4a268["PortUnificationServerHandler"] 640d12e2_2b98_1048_fac3_cf3977c9655d -->|defined in| 0035cd98_439e_cdb1_2619_abb4aba4a268 46a8a557_e9f2_75bd_144b_c3fb8b8fd5d6["decode()"] 46a8a557_e9f2_75bd_144b_c3fb8b8fd5d6 -->|calls| 640d12e2_2b98_1048_fac3_cf3977c9655d style 640d12e2_2b98_1048_fac3_cf3977c9655d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/portunification/PortUnificationServerHandler.java lines 131–138
private void switchToHttp(ChannelHandlerContext ctx) {
ChannelPipeline p = ctx.pipeline();
p.addLast("decoder", new HttpRequestDecoder());
p.addLast("encoder", new HttpResponseEncoder());
p.addLast("deflater", new HttpContentCompressor((CompressionOptions[]) null));
p.addLast("handler", new HttpSnoopServerHandler());
p.remove(this);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does switchToHttp() do?
switchToHttp() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/portunification/PortUnificationServerHandler.java.
Where is switchToHttp() defined?
switchToHttp() is defined in example/src/main/java/io/netty/example/portunification/PortUnificationServerHandler.java at line 131.
What calls switchToHttp()?
switchToHttp() is called by 1 function(s): decode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free