(h httpcaddyfile.Helper)
| 29 | } |
| 30 | |
| 31 | func 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 | // |
nothing calls this directly
no test coverage detected