MCPcopy Create free account
hub / github.com/prometheus/common / httpClientOptions

Struct httpClientOptions

config/http_config.go:497–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495type NewTLSConfigFunc func(context.Context, *TLSConfig, ...TLSConfigOption) (*tls.Config, error)
496
497type httpClientOptions struct {
498 dialContextFunc DialContextFunc
499 newTLSConfigFunc NewTLSConfigFunc
500 keepAlivesEnabled bool
501 http2Enabled bool
502 idleConnTimeout time.Duration
503 userAgent string
504 host string
505 secretManager SecretManager
506}
507
508// HTTPClientOption defines an option that can be applied to the HTTP client.
509type HTTPClientOption interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected