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

Method Validate

modules/caddyhttp/matchers.go:1172–1180  ·  view source on GitHub ↗

Validate validates m's regular expressions.

()

Source from the content-addressed store, hash-verified

1170
1171// Validate validates m's regular expressions.
1172func (m MatchHeaderRE) Validate() error {
1173 for _, rm := range m {
1174 err := rm.Validate()
1175 if err != nil {
1176 return err
1177 }
1178 }
1179 return nil
1180}
1181
1182// CELLibrary produces options that expose this matcher for use in CEL
1183// expression matchers.

Callers 1

BenchmarkHeaderREMatcherFunction · 0.95

Calls 1

ValidateMethod · 0.65

Tested by 1

BenchmarkHeaderREMatcherFunction · 0.76