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

Struct MatchNot

modules/caddyhttp/matchers.go:216–219  ·  view source on GitHub ↗

MatchNot matches requests by negating the results of its matcher sets. A single "not" matcher takes one or more matcher sets. Each matcher set is OR'ed; in other words, if any matcher set returns true, the final result of the "not" matcher is false. Individual matchers within a set work the same (i.

Source from the content-addressed store, hash-verified

214 // where each of the array elements is a matcher set, i.e. an
215 // object keyed by matcher name.
216 MatchNot struct {
217 MatcherSetsRaw []caddy.ModuleMap `json:"-" caddy:"namespace=http.matchers"`
218 MatcherSets []MatcherSet `json:"-"`
219 }
220)
221
222func init() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected