(path: string, options: Options)
| 332 | } |
| 333 | |
| 334 | urlFor(path: string, options: Options) { |
| 335 | const params = []; |
| 336 | if (options.params) { |
| 337 | for (const key in options.params) { |
| 338 | params.push(`${key}=${encodeURIComponent(options.params[key] as string)}`); |
| 339 | } |
| 340 | } |
| 341 | if (params.length) { |
| 342 | path += `?${params.join('&')}`; |
| 343 | } |
| 344 | return this.apiRoot + path; |
| 345 | } |
| 346 | |
| 347 | parseResponse(response: Response) { |
| 348 | const contentType = response.headers.get('Content-Type'); |
no outgoing calls
no test coverage detected