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
refactor: refactor gzipHandler to use config struct instead of Options struct
- Rename `Options` to `config` in `gzipHandler` struct
- Initialize `config` in `newGzipHandler` function
- Apply options to `config` in `newGzipHandler` function
- Remove `Options` initialization and application in `newGzipHandler`
- Rename fields in `gzipHandler` to use camelCase
- Add comments to explain `DefaultExcludedExtentions` and `Option` interface
- Replace `Options` struct with `config` struct
- Ensure `optionFunc` implements `Option` interface
- Update `WithExcludedExtensions`, `WithExcludedPaths`, `WithExcludedPathsRegexs`, `WithDecompressFn`, and `WithDecompressOnly` functions to use `config` instead of `Options`
Signed-off-by: appleboy <[email protected]>
0 commit comments