* Fetches a text response. Note this returns the response object, not the * response's text. #fetchText merely sets up the request to accept text. * * See https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch/fetch * * See `fetchAmpCors_` for more detail. * * @param {stri
(input, opt_init)
| 133 | * @return {!Promise<!Response>} |
| 134 | */ |
| 135 | fetchText(input, opt_init) { |
| 136 | return this.fetch(input, setupInit(opt_init, 'text/plain')); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * A substitute for the standard response.json(), which may optionally strip a prefix before calling JSON.parse(). |
no test coverage detected