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

Method Match

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

Match returns true if r matches m.

(r *http.Request)

Source from the content-addressed store, hash-verified

421
422// Match returns true if r matches m.
423func (m MatchPath) Match(r *http.Request) bool {
424 match, _ := m.MatchWithError(r)
425 return match
426}
427
428// MatchWithError returns true if r matches m.
429func (m MatchPath) MatchWithError(r *http.Request) (bool, error) {

Callers

nothing calls this directly

Calls 1

MatchWithErrorMethod · 0.95

Tested by

no test coverage detected