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