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

Function WithKeepAlivesDisabled

config/http_config.go:539–543  ·  view source on GitHub ↗

WithKeepAlivesDisabled allows to disable HTTP keepalive.

()

Source from the content-addressed store, hash-verified

537
538// WithKeepAlivesDisabled allows to disable HTTP keepalive.
539func WithKeepAlivesDisabled() HTTPClientOption {
540 return httpClientOptionFunc(func(opts *httpClientOptions) {
541 opts.keepAlivesEnabled = false
542 })
543}
544
545// WithHTTP2Disabled allows to disable HTTP2.
546func WithHTTP2Disabled() HTTPClientOption {

Callers

nothing calls this directly

Calls 1

httpClientOptionFuncFuncType · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…