SetUserAgent set the "User-Agent" header for requests fired from the client.
(userAgent string)
| 843 | |
| 844 | // SetUserAgent set the "User-Agent" header for requests fired from the client. |
| 845 | func (c *Client) SetUserAgent(userAgent string) *Client { |
| 846 | return c.SetCommonHeader(header.UserAgent, userAgent) |
| 847 | } |
| 848 | |
| 849 | // SetCommonBearerAuthToken set the bearer auth token for requests fired from the client. |
| 850 | func (c *Client) SetCommonBearerAuthToken(token string) *Client { |