http11Client returns an HTTP client which can only execute HTTP/1.1 requests via TLS.
(rootCAs *x509.CertPool)
| 648 | // http11Client returns an HTTP client which can only |
| 649 | // execute HTTP/1.1 requests via TLS. |
| 650 | func 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 |