Skip to content

Commit 48a68c3

Browse files
Yiivgenydimasites
authored andcommitted
Add zstd compression level support
1 parent 423d656 commit 48a68c3

File tree

1 file changed

+1
-0
lines changed
  • modules/caddyhttp/encode/zstd

1 file changed

+1
-0
lines changed

modules/caddyhttp/encode/zstd/zstd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func init() {
3131

3232
// Zstd can create Zstandard encoders.
3333
type Zstd struct {
34+
// Compression level from 1 to 4 (refer to type constants value from zstd.SpeedFastest to zstd.SpeedBestCompression).
3435
Level zstd.EncoderLevel `json:"level,omitempty"`
3536
}
3637

0 commit comments

Comments
 (0)