diff options
Diffstat (limited to 'modules/caddyhttp/encode/zstd')
-rw-r--r-- | modules/caddyhttp/encode/zstd/zstd.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddyhttp/encode/zstd/zstd.go b/modules/caddyhttp/encode/zstd/zstd.go index 2bb8771..dbcc3ec 100644 --- a/modules/caddyhttp/encode/zstd/zstd.go +++ b/modules/caddyhttp/encode/zstd/zstd.go @@ -16,6 +16,10 @@ func init() { // Zstd can create zstd encoders. type Zstd struct{} +// AcceptEncoding returns the name of the encoding as +// used in the Accept-Encoding request headers. +func (Zstd) AcceptEncoding() string { return "zstd" } + // NewEncoder returns a new gzip writer. func (z Zstd) NewEncoder() encode.Encoder { writer, _ := zstd.NewWriter(nil) |