MCPcopy Index your code
hub / github.com/ampproject/amphtml / clone

Method clone

src/polyfills/fetch.js:142–145  ·  view source on GitHub ↗

* Create a copy of the response and return it. * @return {!FetchResponse}

()

Source from the content-addressed store, hash-verified

140 * @return {!FetchResponse}
141 */
142 clone() {
143 devAssert(!this.bodyUsed, 'Body already used');
144 return new FetchResponse(this.xhr_);
145 }
146
147 /**
148 * Drains the response and returns the text.

Callers 8

TaggedTemplateExpressionFunction · 0.45
fetchMethod · 0.45
streamResponse_Method · 0.45
iterateDateRange_Method · 0.45
getFormattedDate_Method · 0.45
getDayTemplateData_Method · 0.45
matchesRrule_Method · 0.45
getIsOutsideRangeFunction · 0.45

Calls 1

devAssertFunction · 0.90

Tested by

no test coverage detected