(config: ApiConfig)
| 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> = {}; |
nothing calls this directly
no outgoing calls
no test coverage detected