MCPcopy Create free account
hub / github.com/imroc/req / SetCommonCookies

Method SetCommonCookies

client.go:532–535  ·  view source on GitHub ↗

SetCommonCookies set HTTP cookies for requests fired from the client.

(cookies ...*http.Cookie)

Source from the content-addressed store, hash-verified

530
531// SetCommonCookies set HTTP cookies for requests fired from the client.
532func (c *Client) SetCommonCookies(cookies ...*http.Cookie) *Client {
533 c.Cookies = append(c.Cookies, cookies...)
534 return c
535}
536
537// DisableDebugLog disable debug level log (disabled by default).
538func (c *Client) DisableDebugLog() *Client {

Callers 4

TestRetryWithSetResultFunction · 0.80
TestSetCommonCookiesFunction · 0.80
TestClientCloneFunction · 0.80
SetCommonCookiesFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestRetryWithSetResultFunction · 0.64
TestSetCommonCookiesFunction · 0.64
TestClientCloneFunction · 0.64