Sha256: ba50712bb8d788b58a21795853df68f6f52d995830f18235909998a10f976291
Contents?: true
Size: 771 Bytes
Versions: 16
Compression:
Stored size: 771 Bytes
Contents
//go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package runtime import ( "crypto/tls" "net" "net/http" "time" ) var defaultHTTPClient *http.Client func init() { defaultTransport := &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, }).DialContext, ForceAttemptHTTP2: true, MaxIdleConns: 100, IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, TLSClientConfig: &tls.Config{ MinVersion: tls.VersionTLS12, }, } defaultHTTPClient = &http.Client{ Transport: defaultTransport, } }
Version data entries
16 entries across 16 versions & 1 rubygems