MCPcopy Create free account
hub / github.com/angular/angular / withFetch

Function withFetch

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

Source from the content-addressed store, hash-verified

308 * @deprecated `withFetch` is not required anymore. `FetchBackend` is the default `HttpBackend`.
309 */
310export function withFetch(): HttpFeature<HttpFeatureKind.Fetch> {
311 return makeHttpFeature(HttpFeatureKind.Fetch, [
312 FetchBackend,
313 {provide: HttpBackend, useExisting: FetchBackend},
314 ]);
315}
316
317/**
318 * Configures the current `HttpClient` instance to make requests using the Xhr API.

Callers 3

provider_spec.tsFile · 0.90
app.config.tsFile · 0.90

Calls 1

makeHttpFeatureFunction · 0.85

Tested by

no test coverage detected