Feature request: HTTPCompressorWithLevels
HTTPCompressor is very handy to automatically do the right thing based on what encodings the client can accept.
However, it assumes that default compression levels should be used. In a CPU-constrained environment, it can be desirable to customize the compression levels.
HTTPCompressorWithLevels could be func HTTPCompressorWithLevels(w http.ResponseWriter, r *http.Request, brotliLevel, gzipLevel int) io.WriteCloser ... and then HTTPCompressor becomes a wrapper around that. Are you open to the idea if I submit a PR to add this?
Yes, I think that would be a good idea.
@andybalholm PR submitted, see what you think. Thanks!
I finally got around to doing this.