NewRoundTripperFromConfig returns a new HTTP RoundTripper configured for the given config.HTTPClientConfig and config.HTTPClientOption. The name is used as go-conntrack metric label.
(cfg HTTPClientConfig, name string, optFuncs ...HTTPClientOption)
| 621 | // given config.HTTPClientConfig and config.HTTPClientOption. |
| 622 | // The name is used as go-conntrack metric label. |
| 623 | func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, optFuncs ...HTTPClientOption) (http.RoundTripper, error) { |
| 624 | return NewRoundTripperFromConfigWithContext(context.Background(), cfg, name, optFuncs...) |
| 625 | } |
| 626 | |
| 627 | // NewRoundTripperFromConfigWithContext returns a new HTTP RoundTripper configured for the |
| 628 | // given config.HTTPClientConfig and config.HTTPClientOption. |
searching dependent graphs…