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

Method SetCookie

client/client.go:625–631  ·  view source on GitHub ↗

SetCookie sets a single cookie and its value in the client.

(key, val string)

Source from the content-addressed store, hash-verified

623
624// SetCookie sets a single cookie and its value in the client.
625func (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.
634func (c *Client) SetCookies(m map[string]string) *Client {

Callers 15

Test_Bind_CookieFunction · 0.45
Test_Bind_Cookie_MapFunction · 0.45
Test_Bind_Cookie_SchemaFunction · 0.45
Benchmark_Bind_CookieFunction · 0.45
ApplyToMethod · 0.45
CookieMethod · 0.45
Test_Client_CookieFunction · 0.45

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65