MCPcopy Create free account
hub / github.com/daodst/chat / getHttpClient

Function getHttpClient

clientapi/routing/voip.go:227–235  ·  view source on GitHub ↗
(options ...interface{})

Source from the content-addressed store, hash-verified

225}
226
227func getHttpClient(options ...interface{}) http.Client {
228 timeout0 := time.Minute * 1
229 if len(options) > 0 {
230 timeout0 = options[0].(time.Duration)
231 }
232 return http.Client{
233 Timeout: timeout0,
234 }
235}
236
237// PostJSON performs a POST request with JSON on an internal HTTP API
238func PostJSON(

Callers 3

RequestTurnServerFunction · 0.85
AddTmpAuthInfoFunction · 0.85
DelTmpAuthInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected