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

Function parseCopyResponseCaddyfile

modules/caddyhttp/reverseproxy/caddyfile.go:1372–1379  ·  modules/caddyhttp/reverseproxy/caddyfile.go::parseCopyResponseCaddyfile
(h httpcaddyfile.Helper)

Source from the content-addressed store, hash-verified

1370}
1371
1372func parseCopyResponseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
1373 crh := new(CopyResponseHandler)
1374 err := crh.UnmarshalCaddyfile(h.Dispenser)
1375 if err != nil {
1376 return nil, err
1377 }
1378 return crh, nil
1379}
1380
1381// UnmarshalCaddyfile sets up the handler from Caddyfile tokens. Syntax:
1382//

Callers

nothing calls this directly

Calls 1

UnmarshalCaddyfileMethod · 0.65

Tested by

no test coverage detected