MCPcopy
hub / github.com/fabiolb/fabio / http11Client

Function http11Client

cert/source_test.go:650–657  ·  view source on GitHub ↗

http11Client returns an HTTP client which can only execute HTTP/1.1 requests via TLS.

(rootCAs *x509.CertPool)

Source from the content-addressed store, hash-verified

648// http11Client returns an HTTP client which can only
649// execute HTTP/1.1 requests via TLS.
650func http11Client(rootCAs *x509.CertPool) *http.Client {
651 t := &http.Transport{
652 TLSClientConfig: &tls.Config{
653 RootCAs: rootCAs,
654 },
655 }
656 return &http.Client{Transport: t}
657}
658
659// http20Client returns an HTTP client which can
660// execute HTTP/2.0 requests via TLS if the server

Callers 1

testSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected