Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Safe = []uint16{ tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_RSA_WITH_AES_128_CBC_SHA, tls.TLS_RSA_WITH_AES_256_CBC_SHA, }
Functions ¶
func GetTLSConfig ¶
getTLSConfig constructs a tls.Config that uses keys/certificates in the given files.
func GetTransport ¶
func GetTransport(extras map[string]string, rt http.RoundTripper) *headerTransport
func NewHeaderClient ¶
NewHeaderClient returns an http.Client. It has the same behavior as DefaultClient, except that the key-value pairs in extras are added as headers on every request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.