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

Function WithHTTP2Disabled

config/http_config.go:453–457  ·  view source on GitHub ↗

WithHTTP2Disabled allows to disable HTTP2.

()

Source from the content-addressed store, hash-verified

451
452// WithHTTP2Disabled allows to disable HTTP2.
453func WithHTTP2Disabled() HTTPClientOption {
454 return func(opts *httpClientOptions) {
455 opts.http2Enabled = false
456 }
457}
458
459// WithIdleConnTimeout allows setting the idle connection timeout.
460func WithIdleConnTimeout(timeout time.Duration) HTTPClientOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected