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

Function NewHTTPClient

pkg/api/http.go:26–32  ·  view source on GitHub ↗

NewHTTPClient creates a new Proxmox HTTP client with dependency injection.

(httpClient *http.Client, baseURL string, logger interfaces.Logger)

Source from the content-addressed store, hash-verified

24
25// NewHTTPClient creates a new Proxmox HTTP client with dependency injection.
26func NewHTTPClient(httpClient *http.Client, baseURL string, logger interfaces.Logger) *HTTPClient {
27 return &HTTPClient{
28 client: httpClient,
29 baseURL: baseURL,
30 logger: logger,
31 }
32}
33
34// SetAuthManager sets the auth manager for the HTTP client.
35func (hc *HTTPClient) SetAuthManager(authManager *AuthManager) {

Calls

no outgoing calls