WithNewTLSConfigFunc allows you to override the func that creates the TLS config from the prometheus http config. The default is `NewTLSConfigWithContext`.
(newTLSConfigFunc NewTLSConfigFunc)
| 530 | // from the prometheus http config. |
| 531 | // The default is `NewTLSConfigWithContext`. |
| 532 | func WithNewTLSConfigFunc(newTLSConfigFunc NewTLSConfigFunc) HTTPClientOption { |
| 533 | return httpClientOptionFunc(func(opts *httpClientOptions) { |
| 534 | opts.newTLSConfigFunc = newTLSConfigFunc |
| 535 | }) |
| 536 | } |
| 537 | |
| 538 | // WithKeepAlivesDisabled allows to disable HTTP keepalive. |
| 539 | func WithKeepAlivesDisabled() HTTPClientOption { |
nothing calls this directly
no test coverage detected
searching dependent graphs…