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

Method onEnd

src/utils/dom-transform-stream.js:89–91  ·  view source on GitHub ↗

* Callback passed into DetachedDomStream constructor. Called with complete * doc when stream is closed. * Schedules final transfer, then resolves body complete promise. * @param {!Document} unusedCompleteDoc

(unusedCompleteDoc)

Source from the content-addressed store, hash-verified

87 * @param {!Document} unusedCompleteDoc
88 */
89 onEnd(unusedCompleteDoc) {
90 this.bodyTransferResolver_(this.transferBodyChunk_());
91 }
92
93 /**
94 * Promise that will resolve with <head> when available.

Callers 1

streamResponse_Method · 0.95

Calls 1

transferBodyChunk_Method · 0.95

Tested by

no test coverage detected