MCPcopy
hub / github.com/angular/angular / safeFetch

Function safeFetch

packages/service-worker/worker/src/assets.ts:558–567  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

556 }
557
558 protected async safeFetch(req: Request): Promise<Response> {
559 try {
560 return await this.scope.fetch(req);
561 } catch {
562 return this.adapter.newResponse('', {
563 status: 504,
564 statusText: 'Gateway Timeout',
565 });
566 }
567 }
568}
569
570/**

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.45
newResponseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…