Implement brotli encoder; improve validation of other encoders

This commit is contained in:
Matthew Holt
2019-06-13 11:20:43 -06:00
parent f93dab755b
commit b8e7453fef
6 changed files with 87 additions and 6 deletions

View File

@ -1,4 +1,4 @@
package caddystd
package caddyzstd
import (
"github.com/caddyserver/caddy2"
@ -21,3 +21,6 @@ func (z Zstd) NewEncoder() encode.Encoder {
writer, _ := zstd.NewWriter(nil)
return writer
}
// Interface guard
var _ encode.Encoding = (*Zstd)(nil)