MCPcopy Create free account
hub / github.com/QuantumNous/new-api / getHTTPClient

Function getHTTPClient

controller/model_sync.go:120–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118)
119
120func getHTTPClient() *http.Client {
121 httpClientOnce.Do(func() {
122 httpClient = newHTTPClient()
123 })
124 return httpClient
125}
126
127func fetchJSON[T any](ctx context.Context, url string, out *upstreamEnvelope[T]) error {
128 var lastErr error

Callers 1

fetchJSONFunction · 0.85

Calls 2

newHTTPClientFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected