httpcompression
httpcompression copied to clipboard
Go middleware to compress HTTP responses with Gzip, Deflate, Brotli, Zstandard, XZ/LZMA2, LZ4, and more..
Compressors generally operate faster if they are provided with large chunks of data. There is already a small buffer, but it's only used for content-type sniffing before compression start (and...
Hi there. First off, thank you for the high-quality library. I rolled my own fork of the https://github.com/nytimes/gziphandler and was contemplating a brotli version before happily discovering your repo. I...
Blacklisted content-types should not have Vary: Accept-Encoding
- See https://github.com/turtlemonvh/gin-wraphh/issues/7 Basically, if you add compression middleware, any 404 not found calls result in an error because the 404 is handled after the entire `gin.HandlerChain` has attempted to...
We have some servers with fairly large JSON payloads, which would do quite well with compression, if it were supported. As this is a middleware offering, it would be nice...
Bumps [github.com/pierrec/lz4/v4](https://github.com/pierrec/lz4) from 4.1.21 to 4.1.22. Commits fdaa7e2 lz4stream/block: compute block checksum on the block not its source. See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.21.0 to 0.31.0. Commits b4f1988 ssh: make the public key cache a 1-entry FIFO cache 7042ebc openpgp/clearsign: just use rand.Reader in tests 3e90321 go.mod: update golang.org/x dependencies...