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

Function WithHTTP2Disabled

config/http_config.go:546–550  ·  view source on GitHub ↗

WithHTTP2Disabled allows to disable HTTP2.

()

Source from the content-addressed store, hash-verified

544
545// WithHTTP2Disabled allows to disable HTTP2.
546func WithHTTP2Disabled() HTTPClientOption {
547 return httpClientOptionFunc(func(opts *httpClientOptions) {
548 opts.http2Enabled = false
549 })
550}
551
552// WithIdleConnTimeout allows setting the idle connection timeout.
553func WithIdleConnTimeout(timeout time.Duration) 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…