A {@link ChannelHandler} that aggregates an {@link HttpMessage}and its following {@link HttpContent}s into a single {@link HttpMessage} withno following {@link HttpContent}s. It is useful when you don't want to take care of HTTP messages whose transfer encoding is 'chunked'. Insert this handler after {@link HttpObjectDecoder} in the {@link ChannelPipeline}:
{@link ChannelPipeline} p = ...;... p.addLast("decoder", new {@link HttpRequestDecoder}()); p.addLast("aggregator", new {@link HttpObjectAggregator}(1048576)); ... p.addLast("encoder", new {@link HttpResponseEncoder}()); p.addLast("handler", new HttpRequestHandler());