MCPcopy
hub / github.com/TecharoHQ/anubis / Contains

Method Contains

lib/policy/expressions/url_values.go:59–62  ·  view source on GitHub ↗
(key ref.Val)

Source from the content-addressed store, hash-verified

57}
58
59func (u URLValues) Contains(key ref.Val) ref.Val {
60 _, ok := u.Find(key)
61 return types.Bool(ok)
62}
63
64func (u URLValues) Get(key ref.Val) ref.Val {
65 result, ok := u.Find(key)

Callers 15

TestURLValuesFunction · 0.95
matchRedirectDomainFunction · 0.45
RenderIndexMethod · 0.45
TestPassChallengeXSSFunction · 0.45
TestRedirectSecurityFunction · 0.45
CheckMethod · 0.45
mainFunction · 0.45
TestErrorLogFilterFunction · 0.45
computeXFFHeaderFunction · 0.45
GzipMiddlewareFunction · 0.45
WriteMethod · 0.45

Calls 1

FindMethod · 0.95

Tested by 10

TestURLValuesFunction · 0.76
TestPassChallengeXSSFunction · 0.36
TestRedirectSecurityFunction · 0.36
TestErrorLogFilterFunction · 0.36
TestNewOGTagCacheFunction · 0.36
TestVariousOutputFormatsFunction · 0.36
TestBlacklistActionsFunction · 0.36
TestBasePrefixInLinksFunction · 0.36