# Functions
No description provided by the author
DefaultConfig returns the default scrape configuration.
JoinDir joins dir and path if path is relative.
NewAuthorizationCredentialsFileRoundTripper adds the authorization credentials read from the provided file to a request unless the authorization header has already been set.
NewAuthorizationCredentialsRoundTripper adds the provided credentials to a request unless the authorization header has already been set.
NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has already been set.
NewClientFromConfig returns a new HTTP client configured for the given config.HTTPClientConfig and config.HTTPClientOption.
No description provided by the author
NewRoundTripperFromConfig returns a new HTTP RoundTripper configured for the given config.HTTPClientConfig and config.HTTPClientOption.
NewTLSConfig creates a new tls.Config from the given TLSConfig.
No description provided by the author
WithDialContextFunc allows you to override func gets used for the actual dialing.
WithHTTP2Disabled allows to disable HTTP2.
WithIdleConnTimeout allows setting the idle connection timeout.
WithKeepAlivesDisabled allows to disable HTTP keepalive.
# Variables
DefaultHTTPClientConfig is the default HTTP client configuration.
# Structs
Authorization contains HTTP authorization credentials.
BasicAuth contains basic HTTP authentication credentials.
No description provided by the author
HTTPClientConfig configures an HTTP client.
OAuth2 is the oauth2 client configuration.
No description provided by the author
TLSConfig configures the options for TLS connections.
URL is a custom URL type that allows validation at configuration load time.
# Interfaces
DirectorySetter is a config type that contains file paths that may be relative to the file containing the config.
# Type aliases
DialContextFunc defines the signature of the DialContext() function implemented by net.Dialer.
HTTPClientOption defines an option that can be applied to the HTTP client.
Secret special type for storing secrets.