* Consumes and returns the body as a JavaScript Object. * * @see https://fetch.spec.whatwg.org/#dom-body-json * @returns {Promise }
()
| 184 | * @returns {Promise<unknown>} |
| 185 | */ |
| 186 | json () { |
| 187 | return consume(this, 'json') |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Consumes and returns the body as a Blob |