MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / doRequest

Method doRequest

pkg/api/http.go:70–72  ·  view source on GitHub ↗

doRequest performs an HTTP request with proper authentication.

(ctx context.Context, method, path string, data interface{}, result *map[string]interface{})

Source from the content-addressed store, hash-verified

68
69// doRequest performs an HTTP request with proper authentication.
70func (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.
75func (hc *HTTPClient) doRequestWithRetry(ctx context.Context, method, path string, data interface{}, result *map[string]interface{}, maxRetries int) error {

Callers 4

GetMethod · 0.95
PostMethod · 0.95
PutMethod · 0.95
DeleteMethod · 0.95

Calls 1

doRequestWithRetryMethod · 0.95

Tested by

no test coverage detected