我想Gzip
使用 Netty ChannelHandler 进行压缩和解压缩,我尝试了一段时间,但总是有点困难。我的代码如下:
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());
有什么问题吗?