WithDialContextFunc allows you to override func gets used for the actual dialing. The default is `net.Dialer.DialContext`.
(fn DialContextFunc)
| 437 | |
| 438 | // WithDialContextFunc allows you to override func gets used for the actual dialing. The default is `net.Dialer.DialContext`. |
| 439 | func WithDialContextFunc(fn DialContextFunc) HTTPClientOption { |
| 440 | return func(opts *httpClientOptions) { |
| 441 | opts.dialContextFunc = fn |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | // WithKeepAlivesDisabled allows to disable HTTP keepalive. |
| 446 | func WithKeepAlivesDisabled() HTTPClientOption { |
no outgoing calls