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

Struct MatchPathRE

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

MatchPathRE matches requests by a regular expression on the URI's path. Path matching is performed in the unescaped (decoded) form of the path. Upon a match, it adds placeholders to the request: `{http.regexp.name.capture_group}` where `name` is the regular expression's name, and `capture_group` is

Source from the content-addressed store, hash-verified

116 // is given, then the placeholder omits the name: `{http.regexp.capture_group}`
117 // (potentially leading to collisions).
118 MatchPathRE struct{ MatchRegexp }
119
120 // MatchMethod matches requests by the method.
121 MatchMethod []string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected