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

Method Match

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

Match returns true if r matches m.

(r *http.Request)

Source from the content-addressed store, hash-verified

1133
1134// Match returns true if r matches m.
1135func (m MatchHeaderRE) Match(r *http.Request) bool {
1136 match, _ := m.MatchWithError(r)
1137 return match
1138}
1139
1140// MatchWithError returns true if r matches m.
1141func (m MatchHeaderRE) MatchWithError(r *http.Request) (bool, error) {

Callers

nothing calls this directly

Calls 1

MatchWithErrorMethod · 0.95

Tested by

no test coverage detected