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

Struct httpClientOptions

config/http_config.go:499–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected