@Unstable public class Http2ServerUpgradeHandler extends io.netty.channel.ChannelHandlerAdapter
CleartextHttp2ServerUpgradeHandler| 限定符和类型 | 类和说明 |
|---|---|
static class |
Http2ServerUpgradeHandler.PriorKnowledgeUpgradeEvent
User event that is fired to notify about HTTP/2 protocol is started.
|
| 构造器和说明 |
|---|
Http2ServerUpgradeHandler(io.netty.channel.EventLoopGroup bizGroup,
io.netty.handler.codec.http.HttpServerCodec httpServerCodec,
io.netty.handler.codec.http.HttpServerUpgradeHandler httpServerUpgradeHandler,
io.netty.channel.ChannelHandler http2ServerHandler)
Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP
upgrade or prior knowledge
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
public Http2ServerUpgradeHandler(io.netty.channel.EventLoopGroup bizGroup,
io.netty.handler.codec.http.HttpServerCodec httpServerCodec,
io.netty.handler.codec.http.HttpServerUpgradeHandler httpServerUpgradeHandler,
io.netty.channel.ChannelHandler http2ServerHandler)
bizGroup - the EventLoopGrouphttpServerCodec - the http server codechttpServerUpgradeHandler - the http server upgrade handler for HTTP/2http2ServerHandler - the http2 server handler, will be added into pipeline
when starting HTTP/2 by prior knowledgeCopyright © 2008–2018 The Ant Financial. All rights reserved.