WithUserAgent allows setting the user agent.
(ua string)
| 558 | |
| 559 | // WithUserAgent allows setting the user agent. |
| 560 | func WithUserAgent(ua string) HTTPClientOption { |
| 561 | return httpClientOptionFunc(func(opts *httpClientOptions) { |
| 562 | opts.userAgent = ua |
| 563 | }) |
| 564 | } |
| 565 | |
| 566 | // WithHost allows setting the host header. |
| 567 | func WithHost(host string) HTTPClientOption { |
searching dependent graphs…