MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / InitHttpClient

Function InitHttpClient

service/http_client.go:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15var httpClient *http.Client
16
17func InitHttpClient() {
18 if common.RelayTimeout == 0 {
19 httpClient = &http.Client{}
20 } else {
21 httpClient = &http.Client{
22 Timeout: time.Duration(common.RelayTimeout) * time.Second,
23 }
24 }
25}
26
27func GetHttpClient() *http.Client {
28 return httpClient

Callers 1

InitResourcesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected