MCPcopy
hub / github.com/angular/angular / newResponse

Method newResponse

packages/service-worker/worker/src/adapter.ts:47–49  ·  view source on GitHub ↗

* Wrapper around the `Response` constructor.

(body: any, init?: ResponseInit)

Source from the content-addressed store, hash-verified

45 * Wrapper around the `Response` constructor.
46 */
47 newResponse(body: any, init?: ResponseInit) {
48 return new Response(body, init);
49 }
50
51 /**
52 * Wrapper around the `Headers` constructor.

Callers 7

safeFetchMethod · 0.45
safeFetchMethod · 0.45
safeFetchFunction · 0.45
writeMethod · 0.45
handleFetchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected