MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewTestRequest

Function NewTestRequest

internal/waf/requests/test_request.go:17–21  ·  view source on GitHub ↗
(raw *http.Request)

Source from the content-addressed store, hash-verified

15}
16
17func NewTestRequest(raw *http.Request) *TestRequest {
18 return &TestRequest{
19 req: raw,
20 }
21}
22
23func (this *TestRequest) WAFSetCacheBody(bodyData []byte) {
24 this.BodyData = bodyData

Callers 15

TestRule_Init_SingleFunction · 0.92
TestRule_Init_CompositeFunction · 0.92
TestRuleSet_MatchRequestFunction · 0.92
Test_Template2Function · 0.92
BenchmarkTemplateFunction · 0.92
testTemplate1010Function · 0.92
testTemplate2001Function · 0.92
testTemplate3001Function · 0.92

Calls

no outgoing calls

Tested by 15

TestRule_Init_SingleFunction · 0.74
TestRule_Init_CompositeFunction · 0.74
TestRuleSet_MatchRequestFunction · 0.74
Test_Template2Function · 0.74
BenchmarkTemplateFunction · 0.74
testTemplate1010Function · 0.74
testTemplate2001Function · 0.74
testTemplate3001Function · 0.74