func HTTPContentDecompressor ¶
HTTPContentDecompressor is a middleware that offloads the task of handling compressed HTTP requests by identifying the compression format in the "Content-Encoding" header and re-writing request body so that the handlers further in the chain can work on decompressed data. It supports gzip and deflate/zlib compression.
type DecompressorOption ¶
type DecompressorOption func(d *decompressor)