public class Http2WithPriorKnowledgeHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Http2WithPriorKnowledgeHandler handles the requests received directly in HTTP/2 without
attempting an upgrade from HTTP/1.x.
As per https://tools.ietf.org/html/rfc7540#section-3.4 a client can directly send HTTP/2 frames if it is has a prior knowledge of server's capability of handling HTTP/2.
| Constructor and Description |
|---|
Http2WithPriorKnowledgeHandler(String interfaceId,
String serverName,
ServerConnectorFuture serverConnectorFuture,
HttpServerChannelInitializer serverChannelInitializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic Http2WithPriorKnowledgeHandler(String interfaceId, String serverName, ServerConnectorFuture serverConnectorFuture, HttpServerChannelInitializer serverChannelInitializer)
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2022 WSO2. All rights reserved.