(method string, url string, headers groq.Headers, cookies []*http.Cookie, body io.Reader)
| 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) |
| 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 | |
| 48 | func (b BasicClient) SetProxy(proxy string) { |
| 49 | if proxy == "" { |
nothing calls this directly
no test coverage detected