MCPcopy
hub / github.com/caddyserver/caddy / Provision

Method Provision

modules/caddyhttp/encode/zstd/zstd.go:101–111  ·  view source on GitHub ↗

Provision provisions z's configuration.

(ctx caddy.Context)

Source from the content-addressed store, hash-verified

99
100// Provision provisions z's configuration.
101func (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.

Callers

nothing calls this directly

Calls 2

parseEncoderLevelFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected