MCPcopy
hub / github.com/zu1k/proxypool / Get

Method Get

pkg/getter/web_fuzz.go:20–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func (w *WebFuzz) Get() proxy.ProxyList {
21 resp, err := tool.GetHttpClient().Get(w.Url)
22 if err != nil {
23 return nil
24 }
25 defer resp.Body.Close()
26 body, err := ioutil.ReadAll(resp.Body)
27 if err != nil {
28 return nil
29 }
30
31 return FuzzParseProxyFromString(string(body))
32}
33
34func (w *WebFuzz) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup) {
35 defer wg.Done()

Callers 1

Get2ChanMethod · 0.95

Calls 3

GetHttpClientFunction · 0.92
FuzzParseProxyFromStringFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected