MCPcopy
hub / github.com/angular/angular / fetch

Method fetch

packages/service-worker/worker/testing/scope.ts:140–148  ·  view source on GitHub ↗
(req: RequestInfo)

Source from the content-addressed store, hash-verified

138 }
139
140 fetch(req: RequestInfo): Promise<Response> {
141 if (typeof req === 'string') {
142 return this.server.fetch(new MockRequest(normalizeUrl(req, this.scopeUrl)));
143 } else {
144 const mockReq = req.clone() as MockRequest;
145 mockReq.url = normalizeUrl(mockReq.url, this.scopeUrl);
146 return this.server.fetch(mockReq);
147 }
148 }
149
150 addEventListener(
151 type: string,

Callers

nothing calls this directly

Calls 2

normalizeUrlFunction · 0.90
cloneMethod · 0.65

Tested by

no test coverage detected