MCPcopy
hub / github.com/angular/angular / makeNavigationRequest

Function makeNavigationRequest

packages/service-worker/worker/test/happy_spec.ts:2912–2926  ·  view source on GitHub ↗
(
  scope: SwTestHarness,
  url: string,
  clientId?: string,
  init: Object = {},
)

Source from the content-addressed store, hash-verified

2910}
2911
2912function makeNavigationRequest(
2913 scope: SwTestHarness,
2914 url: string,
2915 clientId?: string,
2916 init: Object = {},
2917): Promise<string | null> {
2918 return makeRequest(scope, url, clientId, {
2919 headers: {
2920 Accept: 'text/plain, text/html, text/css',
2921 ...(init as any).headers,
2922 },
2923 mode: 'navigate',
2924 ...init,
2925 });
2926}

Callers 2

happy_spec.tsFile · 0.85
navRequestFunction · 0.85

Calls 1

makeRequestFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…