(text: string)
| 114 | |
| 115 | class HttpClient { |
| 116 | static cleanResponseText(text: string): string { |
| 117 | if (!text) return text; |
| 118 | return text.replace(/^\uFEFF/, '').normalize('NFKC'); |
| 119 | } |
| 120 | static async makeRequest(url: string, options: any = {}): Promise<any> { |
| 121 | const { method = 'GET', headers = {}, data, timeout = 30000 } = options; |
| 122 | return new Promise((resolve, reject) => { |
no test coverage detected