1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-02 14:54:27 +00:00
GoBlog/httpClient.go

16 lines
200 B
Go

package main
import (
"net/http"
"time"
)
func newHttpClient() *http.Client {
return &http.Client{
Timeout: 5 * time.Minute,
Transport: &http.Transport{
DisableKeepAlives: true,
},
}
}