iedc-go/vendor/gopkg.in/chanxuehong/wechat.v2/util/http_client.go

23 lines
350 B
Go
Raw Normal View History

2023-03-02 19:12:15 +00:00
package util
import (
"net/http"
"time"
)
var DefaultHttpClient *http.Client
func init() {
client := *http.DefaultClient
client.Timeout = time.Second * 5
DefaultHttpClient = &client
}
var DefaultMediaHttpClient *http.Client
func init() {
client := *http.DefaultClient
client.Timeout = time.Second * 60
DefaultMediaHttpClient = &client
}