SetUserAgent sets the User-Agent header for the client.
(ua string)
| 530 | |
| 531 | // SetUserAgent sets the User-Agent header for the client. |
| 532 | func (c *Client) SetUserAgent(ua string) *Client { |
| 533 | c.mu.Lock() |
| 534 | defer c.mu.Unlock() |
| 535 | |
| 536 | c.userAgent = ua |
| 537 | return c |
| 538 | } |
| 539 | |
| 540 | // SetReferer sets the Referer header for the client. |
| 541 | func (c *Client) SetReferer(r string) *Client { |