MCPcopy
hub / github.com/angular/angular / withFetch

Function withFetch

packages/common/http/src/provider.ts:300–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 * @deprecated `withFetch` is not required anymore. `FetchBackend` is the default `HttpBackend`.
299 */
300export function withFetch(): HttpFeature<HttpFeatureKind.Fetch> {
301 return makeHttpFeature(HttpFeatureKind.Fetch, [
302 FetchBackend,
303 {provide: HttpBackend, useExisting: FetchBackend},
304 ]);
305}
306
307/**
308 * Configures the current `HttpClient` instance to make requests using the Xhr API.

Callers 2

app.config.tsFile · 0.90

Calls 1

makeHttpFeatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…