* Drains the response and returns the text. * @return {!Promise } * @private
()
| 150 | * @private |
| 151 | */ |
| 152 | drainText_() { |
| 153 | devAssert(!this.bodyUsed, 'Body already used'); |
| 154 | this.bodyUsed = true; |
| 155 | return Promise.resolve(this.xhr_.responseText); |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Drains the response and returns a promise that resolves with the response |
no test coverage detected