public class Http2ClientUpgradeCodec extends Object implements io.netty.handler.codec.http.HttpClientUpgradeHandler.UpgradeCodec
| Constructor and Description |
|---|
Http2ClientUpgradeCodec(Http2ConnectionHandler connectionHandler)
Creates the codec using a default name for the connection handler when adding to the
pipeline.
|
Http2ClientUpgradeCodec(Http2ConnectionHandler connectionHandler,
Http2MultiplexHandler http2MultiplexHandler)
Creates the codec using a default name for the connection handler when adding to the
pipeline.
|
Http2ClientUpgradeCodec(Http2FrameCodec frameCodec,
io.netty.channel.ChannelHandler upgradeToHandler) |
Http2ClientUpgradeCodec(String handlerName,
Http2ConnectionHandler connectionHandler)
Creates the codec providing an upgrade to the given handler for HTTP/2.
|
Http2ClientUpgradeCodec(String handlerName,
Http2ConnectionHandler connectionHandler,
Http2MultiplexHandler http2MultiplexHandler)
Creates the codec providing an upgrade to the given handler for HTTP/2.
|
Http2ClientUpgradeCodec(String handlerName,
Http2FrameCodec frameCodec,
io.netty.channel.ChannelHandler upgradeToHandler) |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
protocol() |
Collection<CharSequence> |
setUpgradeHeaders(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest upgradeRequest) |
void |
upgradeTo(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpResponse upgradeResponse) |
public Http2ClientUpgradeCodec(Http2FrameCodec frameCodec, io.netty.channel.ChannelHandler upgradeToHandler)
public Http2ClientUpgradeCodec(String handlerName, Http2FrameCodec frameCodec, io.netty.channel.ChannelHandler upgradeToHandler)
public Http2ClientUpgradeCodec(Http2ConnectionHandler connectionHandler)
connectionHandler - the HTTP/2 connection handlerpublic Http2ClientUpgradeCodec(Http2ConnectionHandler connectionHandler, Http2MultiplexHandler http2MultiplexHandler)
connectionHandler - the HTTP/2 connection handlerhttp2MultiplexHandler - the Http2 Multiplexer handler to work with Http2FrameCodecpublic Http2ClientUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler)
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline,
or null to auto-generate the nameconnectionHandler - the HTTP/2 connection handlerpublic Http2ClientUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler, Http2MultiplexHandler http2MultiplexHandler)
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline,
or null to auto-generate the nameconnectionHandler - the HTTP/2 connection handlerpublic CharSequence protocol()
protocol in interface io.netty.handler.codec.http.HttpClientUpgradeHandler.UpgradeCodecpublic Collection<CharSequence> setUpgradeHeaders(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest upgradeRequest)
setUpgradeHeaders in interface io.netty.handler.codec.http.HttpClientUpgradeHandler.UpgradeCodecCopyright © 2008–2025 The Netty Project. All rights reserved.