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

Method SetCerts

client.go:283–287  ·  view source on GitHub ↗

SetCerts set client certificates.

(certs ...tls.Certificate)

Source from the content-addressed store, hash-verified

281
282// SetCerts set client certificates.
283func (c *Client) SetCerts(certs ...tls.Certificate) *Client {
284 config := c.GetTLSClientConfig()
285 config.Certificates = append(config.Certificates, certs...)
286 return c
287}
288
289func (c *Client) appendRootCertData(data []byte) {
290 config := c.GetTLSClientConfig()

Callers 2

TestSetCertsFunction · 0.80
SetCertsFunction · 0.80

Calls 1

GetTLSClientConfigMethod · 0.95

Tested by 1

TestSetCertsFunction · 0.64