code: func IsConfigTransportTLS(config Config) bool {
  	// determination of TLS transport does not logically require a version to be specified
  	// modify the copy of the config we got to satisfy preconditions for defaultServerUrlFor
  	config.GroupVersion = defaultVersionFor(&config)
  
  	baseURL, _, err := defaultServerUrlFor(&config)
  	if err != nil {
  		return false
  	}
  	return baseURL.Scheme == "https"
  }
docs: // IsConfigTransportTLS returns true if and only if the provided config will result in a protected
  // connection to the server when it is passed to client.New() or client.RESTClientFor().
  // Use to determine when to send credentials over the wire.
  //
  // Note: the Insecure flag is ignored when testing for this value, so MITM attacks are
  // still possible.