Lines Matching refs:resp
42 var resp *http.Response
48 if resp, err = doSimpleHttpReqImpl(method, url, body, header); err == nil {
49 ret, err = io.ReadAll(resp.Body)
50 resp.Body.Close()
67 resp, err := proxyClient.Do(req)
71 if resp.StatusCode >= 300 {
72 defer resp.Body.Close()
73 data, _ := io.ReadAll(resp.Body)
74 if resp.StatusCode == http.StatusProxyAuthRequired || resp.StatusCode == http.StatusForbidden {
77 logrus.Errorf("%s %s: code: %d body: %s", method, url, resp.StatusCode, string(data))
78 return nil, fmt.Errorf("%s %s: code: %d body: %s", method, url, resp.StatusCode, string(data))
80 return resp, nil