Provision provisions z's configuration.
(ctx caddy.Context)
| 99 | |
| 100 | // Provision provisions z's configuration. |
| 101 | func (z *Zstd) Provision(ctx caddy.Context) error { |
| 102 | if z.Level == "" { |
| 103 | z.Level = zstd.SpeedDefault.String() |
| 104 | } |
| 105 | level, err := parseEncoderLevel(z.Level) |
| 106 | if err != nil { |
| 107 | return err |
| 108 | } |
| 109 | z.level = level |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | // AcceptEncoding returns the name of the encoding as |
| 114 | // used in the Accept-Encoding request headers. |
nothing calls this directly
no test coverage detected