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

Function GetHttpClient

new_feature/notice_func.go:14–22  ·  view source on GitHub ↗
(options ...interface{})

Source from the content-addressed store, hash-verified

12)
13
14func GetHttpClient(options ...interface{}) http.Client {
15 timeout0 := time.Minute * 1
16 if len(options) > 0 {
17 timeout0 = options[0].(time.Duration)
18 }
19 return http.Client{
20 Timeout: timeout0,
21 }
22}
23
24// PostJSONNoSpan performs a POST request with JSON on an internal HTTP API
25func PostJSONNoSpan(

Callers 2

SendServerNoticeFunction · 0.85
SendRoomNoticeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected