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

Method Match

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

Match returns true if r matches m.

(r *http.Request)

Source from the content-addressed store, hash-verified

1251
1252// Match returns true if r matches m.
1253func (m MatchProtocol) Match(r *http.Request) bool {
1254 match, _ := m.MatchWithError(r)
1255 return match
1256}
1257
1258// MatchWithError returns true if r matches m.
1259func (m MatchProtocol) MatchWithError(r *http.Request) (bool, error) {

Callers

nothing calls this directly

Calls 1

MatchWithErrorMethod · 0.95

Tested by

no test coverage detected