GZip should only be applied if it's listed in the Accept-Encoding request header. GZioMessageInspector performs this check and GzipContext is the way of telling GZipMessageEncoder to apply compression.