MCPcopy Index your code
hub / github.com/php/frankenphp / parseCaddyfile

Function parseCaddyfile

caddy/module.go:335–340  ·  view source on GitHub ↗

parseCaddyfile unmarshals tokens from h into a new Middleware.

(h httpcaddyfile.Helper)

Source from the content-addressed store, hash-verified

333
334// parseCaddyfile unmarshals tokens from h into a new Middleware.
335func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
336 m := &FrankenPHPModule{}
337 err := m.UnmarshalCaddyfile(h.Dispenser)
338
339 return m, err
340}
341
342// parsePhpServer parses the php_server directive, which has a similar syntax
343// to the php_fastcgi directive. A line such as this:

Callers

nothing calls this directly

Calls 1

UnmarshalCaddyfileMethod · 0.95

Tested by

no test coverage detected