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

Method primaryURL

js/bundle/src/decoder.ts:110–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 get primaryURL(): string | null {
111 if (this.version === B1) {
112 return this.b1PrimaryURL;
113 }
114 if (this.sections['primary']) {
115 return asString(this.sections['primary']);
116 }
117 return null;
118 }
119
120 getResponse(url: string): Response {
121 return this.compatAdapter.getResponse(url);

Callers

nothing calls this directly

Calls 1

asStringFunction · 0.85

Tested by

no test coverage detected