Init
This commit is contained in:
parent
264c97183e
commit
3faede7b1c
74 changed files with 6228 additions and 1 deletions
14
util/http.go
Normal file
14
util/http.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package util
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
var httpSession = &http.Client{
|
||||
Timeout: 20 * time.Second,
|
||||
}
|
||||
|
||||
func GetHTTPSession() *http.Client {
|
||||
return httpSession
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue