Search code examples
nettyhttp2

Netty HttpObjectAggregator with Http2


I'm building an Http2 server with Netty 4.1 (and the server will only need to support Http2 clients). For my most simple request handling, I want to have the full Http2 request (i.e., FullHttpRequest) before performing any business logic.

How can I do this with Http2? Netty's HttpObjectAggregator only seems intended for Http1.


Solution

  • For this you may need to use the InboundHttp2ToHttpAdapter in your pipeline. Please check: