SetCookie sets a single cookie and its value in the client.
(key, val string)
| 623 | |
| 624 | // SetCookie sets a single cookie and its value in the client. |
| 625 | func (c *Client) SetCookie(key, val string) *Client { |
| 626 | c.mu.Lock() |
| 627 | defer c.mu.Unlock() |
| 628 | |
| 629 | c.cookies.SetCookie(key, val) |
| 630 | return c |
| 631 | } |
| 632 | |
| 633 | // SetCookies sets multiple cookies and their values in the client. |
| 634 | func (c *Client) SetCookies(m map[string]string) *Client { |