GetTLSClientConfig return the underlying tls.Config.
()
| 315 | |
| 316 | // GetTLSClientConfig return the underlying tls.Config. |
| 317 | func (c *Client) GetTLSClientConfig() *tls.Config { |
| 318 | if c.TLSClientConfig == nil { |
| 319 | c.TLSClientConfig = &tls.Config{ |
| 320 | NextProtos: []string{"h2", "http/1.1"}, |
| 321 | } |
| 322 | } |
| 323 | return c.TLSClientConfig |
| 324 | } |
| 325 | |
| 326 | // SetRedirectPolicy set the RedirectPolicy which controls the behavior of receiving redirect |
| 327 | // responses (usually responses with 301 and 302 status code), see the predefined |
no outgoing calls