W3cubDocs

/Angular

withFetch

function developer preview

Configures the current HttpClient instance to make requests using the fetch API.

See more...

withFetch(): HttpFeature<HttpFeatureKind.Fetch>

Parameters

There are no parameters.

Returns

HttpFeature<HttpFeatureKind.Fetch>

Description

This FetchBackend requires the support of the Fetch API which is available on all evergreen browsers and on NodeJS from v18 onward.

Note: The Fetch API doesn't support progress report on uploads.

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/http/withFetch