You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: introduce custom compression decision function in handler (#96)
* feat: introduce custom compression decision function in handler
- Add detailed comments explaining the `Handle` function in `handler.go`
- Modify the condition in `Handle` to include a custom compression decision function
- Consolidate exclusion checks in `shouldCompress` into a single condition
- Add a new field `customShouldCompressFn` to the `config` struct in `options.go`
- Introduce `WithCustomShouldCompressFn` option for setting a custom compression decision function
Signed-off-by: appleboy <[email protected]>
* test: improve test coverage and optimize API performance
- Add a test for custom compression function in gzip middleware
Signed-off-by: appleboy <[email protected]>
---------
Signed-off-by: appleboy <[email protected]>
0 commit comments