MCPcopy Create free account
hub / github.com/imroc/req / GetTLSClientConfig

Method GetTLSClientConfig

client.go:317–324  ·  view source on GitHub ↗

GetTLSClientConfig return the underlying tls.Config.

()

Source from the content-addressed store, hash-verified

315
316// GetTLSClientConfig return the underlying tls.Config.
317func (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

Callers 8

SetCertFromFileMethod · 0.95
SetCertsMethod · 0.95
appendRootCertDataMethod · 0.95
setTLSFingerprintMethod · 0.95
TestGetTLSClientConfigFunction · 0.80
GetTLSClientConfigFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestGetTLSClientConfigFunction · 0.64