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

Method Request

pkg/cuhttp/http.go:38–46  ·  view source on GitHub ↗
(method string, url string, headers groq.Headers, cookies []*http.Cookie, body io.Reader)

Source from the content-addressed store, hash-verified

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)
40 if err != nil {
41 return nil, err
42 }
43 handlerHeaders(req, headers)
44 handlerCookies(req, cookies)
45 return b.client.Do(req)
46}
47
48func (b BasicClient) SetProxy(proxy string) {
49 if proxy == "" {

Callers

nothing calls this directly

Calls 2

handlerHeadersFunction · 0.85
handlerCookiesFunction · 0.85

Tested by

no test coverage detected