MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / constructor

Method constructor

packages/sdks/sdk/src/api.ts:18–26  ·  view source on GitHub ↗
(config: ApiConfig)

Source from the content-addressed store, hash-verified

16 private initialRetryDelay: number;
17
18 constructor(config: ApiConfig) {
19 this.baseUrl = config.baseUrl;
20 this.headers = {
21 'Content-Type': 'application/json',
22 ...config.defaultHeaders,
23 };
24 this.maxRetries = config.maxRetries ?? 3;
25 this.initialRetryDelay = config.initialRetryDelay ?? 500;
26 }
27
28 private async resolveHeaders(): Promise<Record<string, string>> {
29 const resolvedHeaders: Record<string, string> = {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected