• Overview
@angular/common/http

withInterceptorsFromDi

function

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

  
    function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors>;
  
  

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

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

Jump to details