mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 18:04:55 +01:00
1d14e30383
* added koofr client SDK dep for koofr backend
30 lines
540 B
Go
30 lines
540 B
Go
package httpclient
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"net/http"
|
|
)
|
|
|
|
var HttpTransport = &http.Transport{
|
|
DisableCompression: true,
|
|
Proxy: http.ProxyFromEnvironment,
|
|
}
|
|
|
|
var HttpClient = &http.Client{
|
|
Transport: HttpTransport,
|
|
}
|
|
|
|
var InsecureTlsConfig = &tls.Config{
|
|
InsecureSkipVerify: true,
|
|
}
|
|
|
|
var InsecureHttpTransport = &http.Transport{
|
|
TLSClientConfig: InsecureTlsConfig,
|
|
DisableCompression: true,
|
|
Proxy: http.ProxyFromEnvironment,
|
|
}
|
|
|
|
var InsecureHttpClient = &http.Client{
|
|
Transport: InsecureHttpTransport,
|
|
}
|