Top Description Fields Constructors Methods
io.netty5.handler.codec.http2

public Class InboundHttpToHttp2Adapter

extends Object
implements ChannelHandler
Class Inheritance
All Implemented Interfaces
io.netty5.channel.ChannelHandler
Annotations
@UnstableApi
Imports
io.netty5.buffer.Buffer, io.netty5.channel.ChannelHandler, .ChannelHandlerContext, io.netty5.handler.codec.http.FullHttpMessage, .HttpScheme, io.netty5.handler.codec.http.headers.HttpHeaders, io.netty5.handler.codec.http2.headers.Http2Headers, io.netty5.util.internal.UnstableApi

Translates HTTP/1.x object reads into HTTP/2 frames.

Field Summary

Modifier and TypeField and Description
private final Http2Connection
private final Http2FrameListener

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
channelRead(ChannelHandlerContext ctx, Object msg)

Overrides default io.netty5.channel.ChannelHandler.channelRead.

Invoked when the current Channel has read a message from the peer.
private static int
getStreamId(Http2Connection connection, HttpHeaders httpHeaders)

pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
private final Http2Connection connection
listenerback to summary
private final Http2FrameListener listener

Constructor Detail

InboundHttpToHttp2Adapterback to summary
public InboundHttpToHttp2Adapter(Http2Connection connection, Http2FrameListener listener)

Method Detail

channelReadback to summary
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception

Overrides default io.netty5.channel.ChannelHandler.channelRead.

Doc from io.netty5.channel.ChannelHandler.channelRead.

Invoked when the current Channel has read a message from the peer.

Annotations
@Override
getStreamIdback to summary
private static int getStreamId(Http2Connection connection, HttpHeaders httpHeaders)
handleback to summary
pack-priv static void handle(ChannelHandlerContext ctx, Http2Connection connection, Http2FrameListener listener, FullHttpMessage<?> message) throws Http2Exception