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