MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / newHTTPClient

Function newHTTPClient

internal/managementasset/updater.go:129–136  ·  view source on GitHub ↗
(proxyURL string)

Source from the content-addressed store, hash-verified

127}
128
129func newHTTPClient(proxyURL string) *http.Client {
130 client := &http.Client{Timeout: 15 * time.Second}
131
132 sdkCfg := &sdkconfig.SDKConfig{ProxyURL: strings.TrimSpace(proxyURL)}
133 util.SetProxy(sdkCfg, client)
134
135 return client
136}
137
138type releaseAsset struct {
139 Name string `json:"name"`

Callers 1

Calls 1

SetProxyFunction · 0.92

Tested by

no test coverage detected