Open allenxwang opened 10 years ago
Is this fixed or not required?
Yeah we should add this feature. Although, is there any specific reason why this should only apply to fullhttpresponse?
From Netty's examples, looks like this needs to be after the HttpClientCodec.
So not specific to fullhttpresponse, but probably does not make sense for ServerSentEvent without chunked encoding.
I see what you are saying. The example uses the http compression/decompression codec which in turn uses codecs in this package: https://github.com/netty/netty/blob/4.0/codec/src/main/java/io/netty/handler/codec/compression/package-info.java# I think we should aim at modeling client/server compression using this package. HTTP will be a specific use case as it in turn means adding compression type headers. What this means is that compression/decompression can be a generic attribute applied for any client/server.
We need to add another configuration option in ClientConfig to indicate that GZip support is needed and add appropriate handler in the pipeline.