push server

This commit is contained in:
hailong
2021-05-26 19:22:11 +08:00
parent dbf2e56f37
commit a7bedf1f79
13 changed files with 1201 additions and 0 deletions
@@ -0,0 +1,18 @@
package client
import (
"net/http"
"time"
)
func New() *http.Client {
return &http.Client{
Transport: &http.Transport{
MaxIdleConns: 100,
MaxIdleConnsPerHost: 100,
IdleConnTimeout: 30 * time.Second,
DisableCompression: false,
DisableKeepAlives: false,
},
}
}