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

Method SetCookieJar

client/client.go:702–708  ·  view source on GitHub ↗

SetCookieJar sets the cookie jar for the client.

(cookieJar *CookieJar)

Source from the content-addressed store, hash-verified

700
701// SetCookieJar sets the cookie jar for the client.
702func (c *Client) SetCookieJar(cookieJar *CookieJar) *Client {
703 c.mu.Lock()
704 defer c.mu.Unlock()
705
706 c.cookieJar = cookieJar
707 return c
708}
709
710// Get sends a GET request to the specified URL, similar to axios.
711func (c *Client) Get(url string, cfg ...Config) (*Response, error) {

Callers 3

Test_Client_CookieJarFunction · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 3

Test_Client_CookieJarFunction · 0.64