prometheus/util/httputil
Alan Protasio 45bf89a3c0 Improving Performance on the API Gzip Handler (#12363)
Using github.com/klauspost/compress package to replace the current Gzip Handler on the API.
We see significant improvements using this handler over the current one as shown in the benchmark added.

Also:
* move selection of compression from `newCompressedResponseWriter` to `*CompressionHandler.ServeHTTP`.
* renaming `compressedResponseWriter` since it now only does one kind of compression.

Signed-off-by: Alan Protasio <alanprot@gmail.com>
2023-07-04 13:39:01 +00:00
..
compression.go Improving Performance on the API Gzip Handler (#12363) 2023-07-04 13:39:01 +00:00
compression_test.go Improving Performance on the API Gzip Handler (#12363) 2023-07-04 13:39:01 +00:00
context.go
cors.go
cors_test.go