Documentation ¶
Overview ¶
Package agenthttp creates standard Go [net/http.Client]s with common config options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOption ¶
type ClientOption = func(*clientConfig)
func WithAllowHTTP2 ¶
func WithAllowHTTP2(a bool) ClientOption
func WithAuthToken ¶
func WithAuthToken(t string) ClientOption
func WithTLSConfig ¶
func WithTLSConfig(t *tls.Config) ClientOption
func WithTimeout ¶
func WithTimeout(d time.Duration) ClientOption
Click to show internal directories.
Click to hide internal directories.