MCPcopy Create free account
hub / github.com/WICG/webpackage / addIndexEntry

Method addIndexEntry

js/bundle/src/encoder.ts:103–106  ·  view source on GitHub ↗
(url: string, responseLength: number)

Source from the content-addressed store, hash-verified

101 }
102
103 private addIndexEntry(url: string, responseLength: number) {
104 this.compatAdapter.setIndexEntry(url, responseLength);
105 this.currentResponsesOffset += responseLength;
106 }
107
108 private fixupIndex() {
109 // Adjust the offsets by the length of the response section's CBOR header.

Callers 1

addExchangeMethod · 0.95

Calls 1

setIndexEntryMethod · 0.65

Tested by

no test coverage detected