I want to compress and uncompress with Gzip
using Netty ChannelHandler, I was trying for a while, but always got a bit difficulty. My code is below:
pipeline.addLast("decoder", new HttpRequestDecoder());
pipeline.addLast("aggregator", new HttpChunkAggregator(1048576));
pipeline.addLast("inflater", new HttpContentDecompressor());
pipeline.addLast("encoder", new HttpResponseEncoder());
pipeline.addLast("deflater", new HttpContentCompressor());
Is there anything wrong?