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

Method MatchWithError

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

Source from the content-addressed store, hash-verified

54// interface may eventually be dropped.
55type RequestMatcherWithError interface {
56 MatchWithError(*http.Request) (bool, error)
57}
58
59// Handler is like http.Handler except ServeHTTP may return an error.

Callers 15

MatchMethod · 0.65
MatchWithErrorMethod · 0.65
AnyMatchMethod · 0.65
AnyMatchWithErrorMethod · 0.65
TestHostMatcherFunction · 0.65
TestPathMatcherFunction · 0.65
TestPathMatcherWindowsFunction · 0.65
TestPathREMatcherFunction · 0.65
TestHeaderMatcherFunction · 0.65
TestQueryMatcherFunction · 0.65

Implementers 7

MatchRemoteIPmodules/caddyhttp/ip_matchers.go
MatchClientIPmodules/caddyhttp/ip_matchers.go
MatchPathREmodules/caddyhttp/matchers.go
MatchTLSmodules/caddyhttp/matchers.go
MatchNotmodules/caddyhttp/matchers.go
MatchExpressionmodules/caddyhttp/celmatcher.go
MatchFilemodules/caddyhttp/fileserver/matcher.g

Calls

no outgoing calls

Tested by 15

TestHostMatcherFunction · 0.52
TestPathMatcherFunction · 0.52
TestPathMatcherWindowsFunction · 0.52
TestPathREMatcherFunction · 0.52
TestHeaderMatcherFunction · 0.52
TestQueryMatcherFunction · 0.52
TestHeaderREMatcherFunction · 0.52
TestVarREMatcherFunction · 0.52
TestNotMatcherFunction · 0.52