()
| 308 | * @deprecated `withFetch` is not required anymore. `FetchBackend` is the default `HttpBackend`. |
| 309 | */ |
| 310 | export 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. |
no test coverage detected