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

Method safeFetch

packages/service-worker/worker/src/data.ts:615–624  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

613 }
614
615 private async safeFetch(req: Request): Promise<Response> {
616 try {
617 return this.scope.fetch(req);
618 } catch {
619 return this.adapter.newResponse(null, {
620 status: 504,
621 statusText: 'Gateway Timeout',
622 });
623 }
624 }
625
626 /**
627 * Detect if storage is full or approaching capacity.

Callers 3

handleFetchMethod · 0.95

Calls 2

fetchMethod · 0.45
newResponseMethod · 0.45

Tested by

no test coverage detected