// GetRootCAs returns the RootCAs certificate pool from the configured
// transport.
GetRootCAs returns the RootCAs certificate pool from the configured
transport.
// GetRootCAs returns the RootCAs certificate pool from the configured // transport .
func (c *Client) GetRootCAs() *x509.CertPool {
	switch t := c.client.GetTransport().(type) {
	case *http.Transport:
		if t.TLSClientConfig != nil {
			return t.TLSClientConfig.RootCAs
		}
		return nil
	case *http2.Transport:
		if t.TLSClientConfig != nil {
			return t.TLSClientConfig.RootCAs
		}
		return nil
	default:
		return nil
	}
}
func ( c * Client ) GetRootCAs ( ) * x509 . CertPool { switch t := c . client . GetTransport ( ) . ( type ) { case * http . Transport : if t . TLSClientConfig != nil { return t . TLSClientConfig . RootCAs } return nil case * http2 . Transport : if t . TLSClientConfig != nil { return t . TLSClientConfig . RootCAs } return nil default : return nil } }
GetRootCAs returns the RootCAs certificate pool from the configured
transport.
GetRootCAs returns the RootCAs certificate pool from the configured transport .