W3cubDocs

/Angular

withInterceptorsFromDi

function

Includes class-based interceptors configured using a multi-provider in the current injector into the configured HttpClient instance.

See more...

withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors>

Parameters

There are no parameters.

Returns

HttpFeature<HttpFeatureKind.LegacyInterceptors>

See also

Description

Prefer withInterceptors and functional interceptors instead, as support for DI-provided interceptors may be phased out in a later release.

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