MCPcopy
hub / github.com/angular/angular / matchAll

Method matchAll

packages/service-worker/worker/testing/cache.ts:157–167  ·  view source on GitHub ↗
(request?: Request | string, options?: CacheQueryOptions)

Source from the content-addressed store, hash-verified

155 }
156
157 async matchAll(request?: Request | string, options?: CacheQueryOptions): Promise<Response[]> {
158 if (request === undefined) {
159 return Array.from(this.cache.values());
160 }
161 const res = await this.match(request, options);
162 if (res) {
163 return [res];
164 } else {
165 return [];
166 }
167 }
168
169 async put(request: RequestInfo, response: Response): Promise<void> {
170 const url = this.getRequestUrl(request);

Calls 2

matchMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected