HttpClientModule
NgModule
deprecated
Configures the dependency injector for HttpClient
with supporting services for XSRF. Automatically imported by HttpClientModule.
Deprecation warning
Description
Configures the dependency injector for HttpClient
with supporting services for XSRF. Automatically imported by HttpClientModule.
You can add interceptors to the chain behind HttpClient by binding them to the
multiprovider for built-in DI token HTTP_INTERCEPTORS.
When importing the HttpClientModule, the HttpBackend is set to using the HttpXhrBackend.
If you want to use the FetchBackend, use provideHttpClient instead.
Jump to details