(path: string, options: Options)
| 181 | } |
| 182 | |
| 183 | urlFor(path: string, options: Options) { |
| 184 | const params = []; |
| 185 | if (options.params) { |
| 186 | for (const key in options.params) { |
| 187 | params.push(`${key}=${encodeURIComponent(options.params[key] as string)}`); |
| 188 | } |
| 189 | } |
| 190 | if (params.length) { |
| 191 | path += `?${params.join('&')}`; |
| 192 | } |
| 193 | return this.apiRoot + path; |
| 194 | } |
| 195 | |
| 196 | parseResponse(response: Response) { |
| 197 | const contentType = response.headers.get('Content-Type'); |
no outgoing calls
no test coverage detected