upgradeTo() — netty Function Reference
Architecture documentation for the upgradeTo() function in HttpServerUpgradeHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c67456f0_51dc_3338_58a9_338c01ca6979["upgradeTo()"] 5d41c0fa_2de7_208f_1269_8a7709e87c93["TestUpgradeCodec"] c67456f0_51dc_3338_58a9_338c01ca6979 -->|defined in| 5d41c0fa_2de7_208f_1269_8a7709e87c93 style c67456f0_51dc_3338_58a9_338c01ca6979 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpServerUpgradeHandlerTest.java lines 59–67
@Override
public void upgradeTo(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest) {
// Ensure that the HttpServerUpgradeHandler is still installed when this is called
assertEquals(ctx.pipeline().context(HttpServerUpgradeHandler.class), ctx);
assertNotNull(ctx.pipeline().get(HttpServerUpgradeHandler.class));
// Add a marker handler to signal that the upgrade has happened
ctx.pipeline().addAfter(ctx.name(), "marker", new ChannelInboundHandlerAdapter());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does upgradeTo() do?
upgradeTo() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpServerUpgradeHandlerTest.java.
Where is upgradeTo() defined?
upgradeTo() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpServerUpgradeHandlerTest.java at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free