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