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

Method SetRootCertFromString

client.go:298–301  ·  view source on GitHub ↗

SetRootCertFromString set root certificates from string.

(pemContent string)

Source from the content-addressed store, hash-verified

296
297// SetRootCertFromString set root certificates from string.
298func (c *Client) SetRootCertFromString(pemContent string) *Client {
299 c.appendRootCertData([]byte(pemContent))
300 return c
301}
302
303// SetRootCertsFromFile set root certificates from files.
304func (c *Client) SetRootCertsFromFile(pemFiles ...string) *Client {

Callers 2

SetRootCertFromStringFunction · 0.80

Calls 1

appendRootCertDataMethod · 0.95

Tested by 1