WithUserAgent allows setting the user agent.
(ua string)
| 465 | |
| 466 | // WithUserAgent allows setting the user agent. |
| 467 | func WithUserAgent(ua string) HTTPClientOption { |
| 468 | return func(opts *httpClientOptions) { |
| 469 | opts.userAgent = ua |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | // NewClient returns a http.Client using the specified http.RoundTripper. |
| 474 | func newClient(rt http.RoundTripper) *http.Client { |
no outgoing calls