SetCookies sets multiple cookies and their values in the client.
(m map[string]string)
| 632 | |
| 633 | // SetCookies sets multiple cookies and their values in the client. |
| 634 | func (c *Client) SetCookies(m map[string]string) *Client { |
| 635 | c.mu.Lock() |
| 636 | defer c.mu.Unlock() |
| 637 | |
| 638 | c.cookies.SetCookies(m) |
| 639 | return c |
| 640 | } |
| 641 | |
| 642 | // SetCookiesWithStruct sets multiple cookies and their values using a struct. |
| 643 | func (c *Client) SetCookiesWithStruct(v any) *Client { |