File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -431,12 +431,18 @@ func (c *Client) updateHostURL() {
431
431
)
432
432
}
433
433
434
- // SetRootCertificate adds a root certificate to the underlying TLS client config
434
+ // SetRootCertificate adds a root path certificate to the underlying TLS client config.
435
435
func (c * Client ) SetRootCertificate (path string ) * Client {
436
436
c .resty .SetRootCertificate (path )
437
437
return c
438
438
}
439
439
440
+ // SetRootCertificateFromString adds a root certificate to the underlying TLS client config
441
+ func (c * Client ) SetRootCertificateFromString (ca string ) * Client {
442
+ c .resty .SetRootCertificateFromString (ca )
443
+ return c
444
+ }
445
+
440
446
// SetToken sets the API token for all requests from this client
441
447
// Only necessary if you haven't already provided the http client to NewClient() configured with the token.
442
448
func (c * Client ) SetToken (token string ) * Client {
You can’t perform that action at this time.
0 commit comments