Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
55
type
RequestMatcherWithError
interface
{
56
MatchWithError(*http.Request) (bool, error)
57
}
58
59
// Handler is like http.Handler except ServeHTTP may return an error.
Callers
15
TestVarsMatcherDoesNotExpandResolvedValues
Function · 0.65
TestMatchVarsREDoesNotExpandResolvedValues
Function · 0.65
Match
Method · 0.65
MatchWithError
Method · 0.65
AnyMatch
Method · 0.65
AnyMatchWithError
Method · 0.65
TestHostMatcher
Function · 0.65
TestPathMatcher
Function · 0.65
TestPathMatcherWindows
Function · 0.65
TestPathREMatcher
Function · 0.65
TestHeaderMatcher
Function · 0.65
TestQueryMatcher
Function · 0.65
Implementers
7
MatchRemoteIP
modules/caddyhttp/ip_matchers.go
MatchClientIP
modules/caddyhttp/ip_matchers.go
MatchPathRE
modules/caddyhttp/matchers.go
MatchTLS
modules/caddyhttp/matchers.go
MatchNot
modules/caddyhttp/matchers.go
MatchExpression
modules/caddyhttp/celmatcher.go
MatchFile
modules/caddyhttp/fileserver/matcher.g
Calls
no outgoing calls
Tested by
15
TestVarsMatcherDoesNotExpandResolvedValues
Function · 0.52
TestMatchVarsREDoesNotExpandResolvedValues
Function · 0.52
TestHostMatcher
Function · 0.52
TestPathMatcher
Function · 0.52
TestPathMatcherWindows
Function · 0.52
TestPathREMatcher
Function · 0.52
TestHeaderMatcher
Function · 0.52
TestQueryMatcher
Function · 0.52
TestHeaderREMatcher
Function · 0.52
TestVarREMatcher
Function · 0.52
TestNotMatcher
Function · 0.52
BenchmarkLargeHostMatcher
Function · 0.52