(method, contentType, url string, body string)
| 266 | } |
| 267 | |
| 268 | func createRequest(method, contentType, url string, body string) (*http.Request, error) { |
| 269 | req, err := http.NewRequest(method, url, bytes.NewBufferString(body)) |
| 270 | if err != nil { |
| 271 | return nil, err |
| 272 | } |
| 273 | |
| 274 | if contentType != "" { |
| 275 | req.Header.Set("Content-Type", contentType) |
| 276 | } |
| 277 | |
| 278 | return req, nil |
| 279 | } |
| 280 | |
| 281 | func runWithRetries(method, contentType, url string, body string) ( |
| 282 | *x.QueryResWithData, []byte, error) { |
no test coverage detected