- All Implemented Interfaces:
- io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
public class HttpCompressor
extends io.netty.handler.codec.http.HttpContentCompressor
Compress HTTP responses if the encoding type is compressable.
List of compressable encoding types:
"text/plain",
"text/html",
"text/xml",
"text/css",
"text/json",
"application/xml",
"application/xhtml+xml",
"application/rss+xml",
"application/javascript",
"application/x-javascript",
"application/json"