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

Method Match

modules/caddyhttp/vars.go:310–313  ·  view source on GitHub ↗

Match returns true if r matches m.

(r *http.Request)

Source from the content-addressed store, hash-verified

308
309// Match returns true if r matches m.
310func (m MatchVarsRE) Match(r *http.Request) bool {
311 match, _ := m.MatchWithError(r)
312 return match
313}
314
315// MatchWithError returns true if r matches m.
316func (m MatchVarsRE) MatchWithError(r *http.Request) (bool, error) {

Callers

nothing calls this directly

Calls 1

MatchWithErrorMethod · 0.95

Tested by

no test coverage detected