func (c *Config) HasBasicAuth() bool {
	return len(c.Username) != 0
}
HasBasicAuth returns whether the configuration has basic authentication or not.
package transport
import (
	"net"
	"net/http"
)
type Config struct {
	UserAgent string
	TLS TLSConfig
	Username string
	Password string
	BearerToken string
	Impersonate ImpersonationConfig
	Transport http.RoundTripper
	WrapTransport func(rt http.RoundTripper) http.RoundTripper
	Dial func(network, addr string) (net.Conn, error)
}
type ImpersonationConfig struct {
	UserName string
	Groups []string
	Extra map[string][]string
}
func (c *Config) HasCA() bool {
	return len(c.TLS.CAData) > 0 || len(c.TLS.CAFile) > 0
}