public class SmartHttpContentCompressor
extends io.netty.handler.codec.http.HttpContentCompressor
HttpContentCompressor. Netty's HttpContentCompressor fails for chunked writes
The main reason for compressing is that it significantly reduces size of textual api responses (json), which are being used more often than protobuf these days.
Should be revisited with Netty upgrades, to see if this workaround is still needed.
| Constructor and Description |
|---|
SmartHttpContentCompressor() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.handler.codec.http.HttpContentEncoder.Result |
beginEncode(io.netty.handler.codec.http.HttpResponse res,
String acceptEncoding) |
determineWrapper, handlerAddedacceptOutboundMessage, channelInactive, decode, encode, handlerRemovedacceptInboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredCopyright © 2017 Space Applications Services. All rights reserved.