MCPcopy
hub / github.com/angular/angular / newHeaders

Method newHeaders

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

* Wrapper around the `Headers` constructor.

(headers: HeadersInit)

Source from the content-addressed store, hash-verified

52 * Wrapper around the `Headers` constructor.
53 */
54 newHeaders(headers: HeadersInit): Headers {
55 return new Headers(headers);
56 }
57
58 /**
59 * Test if a given object is an instance of `Client`.

Callers 2

newRequestWithMetadataFunction · 0.45
handleFetchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected