MCPcopy
hub / github.com/wallarm/gotestwaf / String

Method String

internal/scanner/types/clients.go:21–30  ·  view source on GitHub ↗

String returns string representation of HTTPClientType type.

()

Source from the content-addressed store, hash-verified

19
20// String returns string representation of HTTPClientType type.
21func (t HTTPClientType) String() string {
22 switch t {
23 case GoHTTPClient:
24 return "GoHTTPClient"
25 case ChromeHTTPClient:
26 return "ChromeHTTPClient"
27 default:
28 return fmt.Sprintf("%d", int(t))
29 }
30}
31
32// UnknownHTTPClientError represents an error for unknown HTTP client types.
33type UnknownHTTPClientError struct {

Callers 15

TestDialFuncFunction · 0.45
TestDialFuncError3Function · 0.45
DialFuncFunction · 0.45
generateChartsFunction · 0.45
validateGtwVersionFunction · 0.45
validateFpFunction · 0.45
validateMarkFunction · 0.45
validateCssSuffixFunction · 0.45
validateIndicatorFunction · 0.45
validateArgsFunction · 0.45
validateEncodersFunction · 0.45
validatePlaceholdersFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestDialFuncFunction · 0.36
TestDialFuncError3Function · 0.36