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