GoBlog/httpClient.go

16 lines
200 B
Go
Raw Normal View History

2021-03-31 07:29:52 +00:00
package main
import (
"net/http"
"time"
)
func newHttpClient() *http.Client {
return &http.Client{
Timeout: 5 * time.Minute,
Transport: &http.Transport{
DisableKeepAlives: true,
},
2021-06-19 06:37:16 +00:00
}
}