MCPcopy Index your code
hub / github.com/SMNETSTUDIO/Groq2API / handlerCookies

Function handlerCookies

pkg/cuhttp/http.go:29–36  ·  view source on GitHub ↗
(req *http.Request, cookies []*http.Cookie)

Source from the content-addressed store, hash-verified

27}
28
29func 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
38func (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)

Callers 1

RequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected