doRequest performs an HTTP request with proper authentication.
(ctx context.Context, method, path string, data interface{}, result *map[string]interface{})
| 68 | |
| 69 | // doRequest performs an HTTP request with proper authentication. |
| 70 | func (hc *HTTPClient) doRequest(ctx context.Context, method, path string, data interface{}, result *map[string]interface{}) error { |
| 71 | return hc.doRequestWithRetry(ctx, method, path, data, result, 1) |
| 72 | } |
| 73 | |
| 74 | // doRequestWithRetry performs an HTTP request with retry logic. |
| 75 | func (hc *HTTPClient) doRequestWithRetry(ctx context.Context, method, path string, data interface{}, result *map[string]interface{}, maxRetries int) error { |
no test coverage detected