mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
16 lines
244 B
Go
16 lines
244 B
Go
|
package discoveryutils
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
var defaultClient = &http.Client{
|
||
|
Timeout: 30 * time.Second,
|
||
|
}
|
||
|
|
||
|
// GetHTTPClient returns default client for http API requests.
|
||
|
func GetHTTPClient() *http.Client {
|
||
|
return defaultClient
|
||
|
}
|