MCPcopy
hub / github.com/QuantumNous/new-api / getHTTPClient

Function getHTTPClient

controller/model_sync.go:126–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124)
125
126func getHTTPClient() *http.Client {
127 httpClientOnce.Do(func() {
128 httpClient = newHTTPClient()
129 })
130 return httpClient
131}
132
133func fetchJSON[T any](ctx context.Context, url string, out *upstreamEnvelope[T]) error {
134 var lastErr error

Callers 1

fetchJSONFunction · 0.85

Calls 2

newHTTPClientFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected