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

Function parseCaddyfile

modules/caddyhttp/encode/caddyfile.go:31–38  ·  modules/caddyhttp/encode/caddyfile.go::parseCaddyfile
(h httpcaddyfile.Helper)

Source from the content-addressed store, hash-verified

29}
30
31func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
32 enc := new(Encode)
33 err := enc.UnmarshalCaddyfile(h.Dispenser)
34 if err != nil {
35 return nil, err
36 }
37 return enc, nil
38}
39
40// UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax:
41//

Callers

nothing calls this directly

Calls 1

UnmarshalCaddyfileMethod · 0.65

Tested by

no test coverage detected