(response: Response)
| 199 | } |
| 200 | |
| 201 | async parseJsonResponse(response: Response) { |
| 202 | const json = await response.json(); |
| 203 | if (!response.ok) { |
| 204 | return Promise.reject(json); |
| 205 | } |
| 206 | return json; |
| 207 | } |
| 208 | |
| 209 | urlFor(path: string, options: Options) { |
| 210 | const params = []; |