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

Method Match

modules/caddyhttp/caddyhttp.go:44–44  ·  view source on GitHub ↗
(*http.Request)

Source from the content-addressed store, hash-verified

42// but keep your Match() methods for backwards compatibility.
43type RequestMatcher interface {
44 Match(*http.Request) bool
45}
46
47// RequestMatcherWithError is like RequestMatcher but can return an error.

Callers 15

TestResponseMatcherFunction · 0.65
MatchMethod · 0.65
MatchWithErrorMethod · 0.65
MatchWithErrorMethod · 0.65
MatchWithErrorMethod · 0.65
MatchWithErrorMethod · 0.65
CELMatcherDecoratorFunction · 0.65
MatchWithErrorMethod · 0.65
ServeHTTPMethod · 0.65
MatchMethod · 0.65

Implementers 14

MatchRegexpmodules/caddytls/matchers.go
MatchServerNameREmodules/caddytls/matchers.go
MatchRemoteIPmodules/caddytls/matchers.go
MatchLocalIPmodules/caddytls/matchers.go
MatchRemoteIPmodules/caddyhttp/ip_matchers.go
MatchClientIPmodules/caddyhttp/ip_matchers.go
ResponseMatchermodules/caddyhttp/responsematchers.go
MatchPathREmodules/caddyhttp/matchers.go
MatchTLSmodules/caddyhttp/matchers.go
MatchNotmodules/caddyhttp/matchers.go
MatchRegexpmodules/caddyhttp/matchers.go
MatchExpressionmodules/caddyhttp/celmatcher.go

Calls

no outgoing calls

Tested by 2

TestResponseMatcherFunction · 0.52