iris.Compression
middleware:If the client does not accept an encoding then it will write the contents as they are, without compression.
Context.CompressWriter(enable bool)
method before sent the response:Context.ClientSupportsEncoding(s ...string) bool
method which reports if the client does accept and support gzip encoding: