(url, method string, timeout int)
| 48 | } |
| 49 | |
| 50 | func HandleRequest(url, method string, timeout int) (int, []byte, error) { |
| 51 | transport := xpack.MultiNodeProvider.LoadRequestTransport() |
| 52 | client := http.Client{Timeout: time.Duration(timeout) * time.Second, Transport: transport} |
| 53 | return HandleRequestWithClient(&client, url, method, timeout) |
| 54 | } |
| 55 | |
| 56 | func HandleRequestWithClient(client *http.Client, url, method string, timeout int) (int, []byte, error) { |
| 57 | defer func() { |
nothing calls this directly
no test coverage detected