* Drains the response and returns the text. * @return {!Promise } * @private
()
| 13644 | * @private |
| 13645 | */ |
| 13646 | drainText_() { |
| 13647 | assert(!this.bodyUsed, 'Body already used'); |
| 13648 | this.bodyUsed = true; |
| 13649 | return Promise.resolve(this.xhr_.responseText); |
| 13650 | } |
| 13651 | |
| 13652 | /** |
| 13653 | * Drains the response and returns a promise that resolves with the response |
no test coverage detected