MCPcopy Create free account
hub / github.com/Le0nsec/SecCrawler / CrawlerClient

Function CrawlerClient

utils/utils.go:60–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func CrawlerClient() *http.Client {
61 if config.Cfg.Proxy.CrawlerProxyEnabled {
62 return proxyClient(4)
63 }
64 client := &http.Client{
65 Timeout: time.Duration(4) * time.Second,
66 }
67 return client
68}
69
70func BotClient(timeout uint8) *http.Client {
71 if config.Cfg.Proxy.BotProxyEnabled {

Callers 15

GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92
GetMethod · 0.92

Calls 1

proxyClientFunction · 0.85

Tested by

no test coverage detected