Add compression support to stats_over_http (#7393)

Add compression support to stats_over_http

This adds support for deflate, gzip, and brotli to the output in stats_over_http.

The plugin now checks the accept-encoding header and will compress the output (either json or csv) to the specified format.
If multiple are specified then its order of preference is deflate, gzip, brotli. Then the plugin will set the Content-Encoding field
2 files changed