MCPcopy
hub / github.com/assetnote/kiterunner / RequestValidator

Interface RequestValidator

pkg/kiterunner/validator.go:12–14  ·  view source on GitHub ↗

RequestValidator is an interface that lets you add custom validators for what are good and bad responses

Source from the content-addressed store, hash-verified

10
11// RequestValidator is an interface that lets you add custom validators for what are good and bad responses
12type RequestValidator interface {
13 Validate(r http.Response, wildcardResponses []WildcardResponse, c *Config) error
14}
15
16type KnownBadSitesValidator struct{}
17

Callers 2

handleRequestFunction · 0.65
RunAsyncMethod · 0.65

Implementers 8

KnownBadSitesValidatorpkg/kiterunner/validator.go
WildcardResponseValidatorpkg/kiterunner/validator.go
ContentLengthValidatorpkg/kiterunner/validator.go
StatusCodeWhitelistpkg/kiterunner/validator.go
StatusCodeBlacklistpkg/kiterunner/validator.go
Configpkg/kiterunner/config.go
RegexStringCrumbpkg/proute/proute.pb.go
ScanOptionsinternal/scan/options.go

Calls

no outgoing calls

Tested by

no test coverage detected