httpcompression
httpcompression copied to clipboard
Go middleware to compress HTTP responses with Gzip, Deflate, Brotli, Zstandard, XZ/LZMA2, LZ4, and more..
```golang package main import ( "github.com/CAFxX/httpcompression" "github.com/labstack/echo/v4" ) func main() { e:=echo.New() adapter, err := httpcompression.DefaultAdapter() if err != nil { return } e.Use(echo.WrapMiddleware(adapter)) e.Start(":1323") } ``` Use the above...
When I use SSEs without compression, I get each message flushed back one at a time. When I enable the compression it seems to continue to buffer instead of flushing...
### Motivation I work on projects where I cannot use the `Adapter(..)` directly. I need to call the `*.ServeHTTP(..)` method directly. ### Changes 1. This PR split the logic of...
Bumps [github.com/pierrec/lz4/v4](https://github.com/pierrec/lz4) from 4.1.18 to 4.1.19. Commits a0f6c5e Merge pull request #212 from edigaryev/writer-init-on-flush 3ac62b5 Writer: initialize the writer on Flush() if wasn't initialized before See full diff in compare...
In https://github.com/CAFxX/httpcompression/blob/102a9fbf823395bc74c2a1345c0d606d04443ce3/adapter.go#L210-L216 gzip, br, deflate compression levels are configurable via option but I cannot see zstd level? It would be nice to have.
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.16.7 to 1.17.4. Release notes Sourced from github.com/klauspost/compress's releases. v1.17.4 What's Changed huff0: Speed up symbol counting by @greatroar in klauspost/compress#887 huff0: Remove byteReader by @greatroar in...
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.43.0 to 2.50.0. Release notes Sourced from github.com/gofiber/fiber/v2's releases. v2.50.0 ❗ Breaking Changes Change signatures of GetReqHeaders and GetRespHeaders (#2650) To allow single and list values under...
Bumps [github.com/andybalholm/brotli](https://github.com/andybalholm/brotli) from 1.0.5 to 1.0.6. Commits b7a4cf9 remove Content-Type requirement 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 any conflicts with this PR as long...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.7.0 to 0.17.0. Commits b225e7c http2: limit maximum handler goroutines to MaxConcurrentStreams 88194ad go.mod: update golang.org/x dependencies 2b60a61 quic: fix several bugs in flow control accounting 73d82ef...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0. Commits b225e7c http2: limit maximum handler goroutines to MaxConcurrentStreams 88194ad go.mod: update golang.org/x dependencies 2b60a61 quic: fix several bugs in flow control accounting 73d82ef...