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

Struct httpClientOptions

config/http_config.go:427–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425type DialContextFunc func(context.Context, string, string) (net.Conn, error)
426
427type httpClientOptions struct {
428 dialContextFunc DialContextFunc
429 keepAlivesEnabled bool
430 http2Enabled bool
431 idleConnTimeout time.Duration
432 userAgent string
433}
434
435// HTTPClientOption defines an option that can be applied to the HTTP client.
436type HTTPClientOption func(options *httpClientOptions)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected