(path: string, options: Options)
| 207 | } |
| 208 | |
| 209 | urlFor(path: string, options: Options) { |
| 210 | const params = []; |
| 211 | if (options.params) { |
| 212 | for (const key in options.params) { |
| 213 | params.push(`${key}=${encodeURIComponent(options.params[key] as string)}`); |
| 214 | } |
| 215 | } |
| 216 | if (params.length) { |
| 217 | path += `?${params.join('&')}`; |
| 218 | } |
| 219 | return this.apiRoot + path; |
| 220 | } |
| 221 | |
| 222 | parseResponse(response: Response) { |
| 223 | const contentType = response.headers.get('Content-Type'); |
no outgoing calls
no test coverage detected