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