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

Method Provision

modules/caddyhttp/vars.go:299–307  ·  view source on GitHub ↗

Provision compiles m's regular expressions.

(ctx caddy.Context)

Source from the content-addressed store, hash-verified

297
298// Provision compiles m's regular expressions.
299func (m MatchVarsRE) Provision(ctx caddy.Context) error {
300 for _, rm := range m {
301 err := rm.Provision(ctx)
302 if err != nil {
303 return err
304 }
305 }
306 return nil
307}
308
309// Match returns true if r matches m.
310func (m MatchVarsRE) Match(r *http.Request) bool {

Callers 1

CELLibraryMethod · 0.95

Calls 1

ProvisionMethod · 0.65

Tested by

no test coverage detected