package
1.7.2
Repository: https://github.com/tao-network/prometheus.git
Documentation: pkg.go.dev

# Functions

NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has already been set.
NewBearerAuthFileRoundTripper adds the bearer token read from the provided file to a request unless the authorization header has already been set.
NewBearerAuthRoundTripper adds the provided bearer token to a request unless the authorization header has already been set.
NewClientFromConfig returns a new HTTP client configured for the given config.HTTPClientConfig.
NewTLSConfig creates a new tls.Config from the given config_util.TLSConfig.

# Structs

CompressionHandler is a wrapper around http.Handler which adds suitable response compression based on the client's Accept-Encoding headers.