mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Add HTTP2 config option for policy plugin (#16225)
This commit is contained in:
committed by
GitHub
parent
709eb283d9
commit
9e6cc847f8
@@ -568,6 +568,15 @@ func ToS3ETag(etag string) string {
|
||||
return etag
|
||||
}
|
||||
|
||||
// GetDefaultConnSettings returns default HTTP connection settings.
|
||||
func GetDefaultConnSettings() xhttp.ConnSettings {
|
||||
return xhttp.ConnSettings{
|
||||
DNSCache: globalDNSCache,
|
||||
DialTimeout: rest.DefaultTimeout,
|
||||
RootCAs: globalRootCAs,
|
||||
}
|
||||
}
|
||||
|
||||
// NewInternodeHTTPTransport returns a transport for internode MinIO
|
||||
// connections.
|
||||
func NewInternodeHTTPTransport() func() http.RoundTripper {
|
||||
|
||||
Reference in New Issue
Block a user