package
0.0.0-20240908172838-7bcebe7d766f
Repository: https://github.com/evcc-io/evcc.git
Documentation: pkg.go.dev
# Functions
BasicAuth creates an http transport performing basic auth.
BasicAuthHeader returns the basic auth header.
BearerAuth creates an HTTP transport performing HTTP authorization using an OAuth 2.0 Bearer Token.
DecorateHeaders wraps the given http.Request with a decorator that adds the given parameters to the request headers.
DecorateQuery wraps the given http.Request with a decorator that adds the given parameters to the GET query string.
Default returns an http.DefaultTransport as http.Transport with reduced dial timeout.
InsecureTransport is an http.Transport with TLSClientConfig.InsecureSkipVerify enabled.