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

Function parseCaddyfile

modules/caddyhttp/logging/caddyfile.go:32–36  ·  view source on GitHub ↗

parseCaddyfile sets up the log_append handler from Caddyfile tokens. Syntax: log_append [<matcher>] [<]<key> <value>

(h httpcaddyfile.Helper)

Source from the content-addressed store, hash-verified

30//
31// log_append [<matcher>] [<]<key> <value>
32func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
33 handler := new(LogAppend)
34 err := handler.UnmarshalCaddyfile(h.Dispenser)
35 return handler, err
36}
37
38// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
39func (h *LogAppend) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {

Callers

nothing calls this directly

Calls 1

UnmarshalCaddyfileMethod · 0.65

Tested by

no test coverage detected