(req *http.Request, cookies []*http.Cookie)
| 27 | } |
| 28 | |
| 29 | func handlerCookies(req *http.Request, cookies []*http.Cookie) { |
| 30 | if cookies == nil { |
| 31 | return |
| 32 | } |
| 33 | for _, v := range cookies { |
| 34 | req.AddCookie(v) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func (b BasicClient) Request(method string, url string, headers groq.Headers, cookies []*http.Cookie, body io.Reader) (*http.Response, error) { |
| 39 | req, err := http.NewRequest(method, url, body) |