I think it would be better to add a deflator to the netty channel pipeline and solve this in one place.  Using this approach means that we'll have to do this dance in every HttpRequestHandler implementation.