]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/aws/aws-sdk-go/aws/session/cabundle_transport_1_5.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / aws / aws-sdk-go / aws / session / cabundle_transport_1_5.go
1 // +build !go1.6,go1.5
2
3 package session
4
5 import (
6 "net"
7 "net/http"
8 "time"
9 )
10
11 // Transport that should be used when a custom CA bundle is specified with the
12 // SDK.
13 func getCABundleTransport() *http.Transport {
14 return &http.Transport{
15 Proxy: http.ProxyFromEnvironment,
16 Dial: (&net.Dialer{
17 Timeout: 30 * time.Second,
18 KeepAlive: 30 * time.Second,
19 }).Dial,
20 TLSHandshakeTimeout: 10 * time.Second,
21 }
22 }