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

Function WithHTTP2Disabled

config/http_config.go:544–548  ·  view source on GitHub ↗

WithHTTP2Disabled allows to disable HTTP2.

()

Source from the content-addressed store, hash-verified

542
543// WithHTTP2Disabled allows to disable HTTP2.
544func WithHTTP2Disabled() HTTPClientOption {
545 return httpClientOptionFunc(func(opts *httpClientOptions) {
546 opts.http2Enabled = false
547 })
548}
549
550// WithIdleConnTimeout allows setting the idle connection timeout.
551func WithIdleConnTimeout(timeout time.Duration) HTTPClientOption {

Callers

nothing calls this directly

Calls 1

httpClientOptionFuncFuncType · 0.85

Tested by

no test coverage detected