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

Method text

src/polyfills/fetch.js:163–165  ·  view source on GitHub ↗

* Drains the response and returns a promise that resolves with the response * text. * @return {!Promise }

()

Source from the content-addressed store, hash-verified

161 * @return {!Promise<string>}
162 */
163 text() {
164 return this.drainText_();
165 }
166
167 /**
168 * Drains the response and returns the JSON object.

Callers 15

checkFileFunction · 0.45
checkResponseFunction · 0.45
logTestErrorFunction · 0.45
githubFetchFunction · 0.45
passthroughServeModeCdnFunction · 0.45
app.jsFile · 0.45
requestAmphtmlDocUrlFunction · 0.45
proxyToAmpProxyFunction · 0.45
requestFromUrlFunction · 0.45
fetchDocumentFunction · 0.45
constructorMethod · 0.45
streamResponseToWriterFunction · 0.45

Calls 1

drainText_Method · 0.95

Tested by

no test coverage detected