* Read and decode the response body as json
()
| 295 | * Read and decode the response body as json |
| 296 | */ |
| 297 | async json<T>(): Promise<T> { |
| 298 | let fullBody = decodeText(await this.readAll()); |
| 299 | return JSON.parse(fullBody); |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Read and decode the reponse body as utf8 encoded text |
nothing calls this directly
no test coverage detected