MCPcopy
hub / github.com/ampproject/amphtml / drainText_

Method drainText_

third_party/subscriptions-project/swg.js:13646–13650  ·  view source on GitHub ↗

* Drains the response and returns the text. * @return {!Promise } * @private

()

Source from the content-addressed store, hash-verified

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

Callers 3

textMethod · 0.95
jsonMethod · 0.95
arrayBufferMethod · 0.95

Calls 2

resolveMethod · 0.80
assertFunction · 0.70

Tested by

no test coverage detected