ngmodule
Configures the dependency injector for HttpClient
with supporting services for XSRF. Automatically imported by HttpClientModule
.
class HttpClientModule { }
You can add interceptors to the chain behind HttpClient
by binding them to the multiprovider for built-in DI token HTTP_INTERCEPTORS
.
Provider |
---|
HttpClient |
{ provide: HttpHandler, useClass: HttpInterceptingHandler } |
HttpXhrBackend |
{ provide: HttpBackend, useExisting: HttpXhrBackend } |
BrowserXhr |
{ provide: XhrFactory, useExisting: BrowserXhr } |
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/common/http/HttpClientModule