Skip to content

Commit

Permalink
feat: improve compression and testing mechanisms across the project
Browse files Browse the repository at this point in the history
- Add `HuffmanOnly` constant for gzip compression

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 12, 2025
1 parent 48d0307 commit 1b4a866
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const (
BestSpeed = gzip.BestSpeed
DefaultCompression = gzip.DefaultCompression
NoCompression = gzip.NoCompression
HuffmanOnly = gzip.HuffmanOnly
)

func Gzip(level int, options ...Option) gin.HandlerFunc {
Expand Down

0 comments on commit 1b4a866

Please sign in to comment.