upgradeTo() — netty Function Reference
Architecture documentation for the upgradeTo() function in Http2ClientUpgradeCodec.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f1645f57_ba10_d57d_8001_5ea9b7805279["upgradeTo()"] 05b8b9b6_95f6_6e56_1d66_6116444fa08c["Http2ClientUpgradeCodec"] f1645f57_ba10_d57d_8001_5ea9b7805279 -->|defined in| 05b8b9b6_95f6_6e56_1d66_6116444fa08c style f1645f57_ba10_d57d_8001_5ea9b7805279 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ClientUpgradeCodec.java lines 124–144
@Override
public void upgradeTo(ChannelHandlerContext ctx, FullHttpResponse upgradeResponse)
throws Exception {
try {
// Add the handler to the pipeline.
ctx.pipeline().addAfter(ctx.name(), handlerName, upgradeToHandler);
// Add the Http2 Multiplex handler as this handler handle events produced by the connectionHandler.
// See https://github.com/netty/netty/issues/9495
if (http2MultiplexHandler != null) {
final String name = ctx.pipeline().context(connectionHandler).name();
ctx.pipeline().addAfter(name, null, http2MultiplexHandler);
}
// Reserve local stream 1 for the response.
connectionHandler.onHttpClientUpgrade();
} catch (Http2Exception e) {
ctx.fireExceptionCaught(e);
ctx.close();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does upgradeTo() do?
upgradeTo() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ClientUpgradeCodec.java.
Where is upgradeTo() defined?
upgradeTo() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ClientUpgradeCodec.java at line 124.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free