MCPcopy
hub / github.com/gofiber/fiber / SetCookies

Method SetCookies

client/client.go:634–640  ·  view source on GitHub ↗

SetCookies sets multiple cookies and their values in the client.

(m map[string]string)

Source from the content-addressed store, hash-verified

632
633// SetCookies sets multiple cookies and their values in the client.
634func (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.
643func (c *Client) SetCookiesWithStruct(v any) *Client {

Callers 9

Test_Client_CookieFunction · 0.45
Test_Request_CookieFunction · 0.45
Test_Request_CookiesFunction · 0.45
setConfigToRequestFunction · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 8

Test_Client_CookieFunction · 0.36
Test_Request_CookieFunction · 0.36
Test_Request_CookiesFunction · 0.36