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

Method Match

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

Match returns true if r matches m.

(r *http.Request)

Source from the content-addressed store, hash-verified

988
989// Match returns true if r matches m.
990func (m MatchHeader) Match(r *http.Request) bool {
991 match, _ := m.MatchWithError(r)
992 return match
993}
994
995// MatchWithError returns true if r matches m.
996func (m MatchHeader) MatchWithError(r *http.Request) (bool, error) {

Callers

nothing calls this directly

Calls 1

MatchWithErrorMethod · 0.95

Tested by

no test coverage detected