request makes a single HTTP request using headers `headers` and proxy `proxy`.
(method, uri string, headers []header, proxy *url.URL, timeout int, redirect bool)
| 180 | |
| 181 | // request makes a single HTTP request using headers `headers` and proxy `proxy`. |
| 182 | func request(method, uri string, headers []header, proxy *url.URL, timeout int, redirect bool) (ResponseInfo, error) { |
| 183 | return requestBody(method, uri, headers, "", proxy, timeout, redirect) |
| 184 | } |
| 185 | |
| 186 | func requestBody(method, uri string, headers []header, body string, proxy *url.URL, timeout int, redirect bool) (ResponseInfo, error) { |
| 187 | if method == "" { |
nothing calls this directly
no test coverage detected