{ "id": "api/common/http/HttpClientModule", "title": "HttpClientModule", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/http\n
\n \n
\n \n
\n

HttpClientModulelink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Configures the dependency injector for HttpClient\nwith supporting services for XSRF. Automatically imported by HttpClientModule.

\n\n

See more...

\n
\n \n \n \n
\n\nclass HttpClientModule {\n}\n\n\n \n \n\n
\n\n\n \n\n \n \n \n
\n

Descriptionlink

\n

You can add interceptors to the chain behind HttpClient by binding them to the\nmultiprovider for built-in DI token HTTP_INTERCEPTORS.

\n\n \n
\n\n \n\n \n\n \n\n \n\n\n \n\n\n \n \n
\n

Providerslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Provider
\n \n HttpClient\n \n
\n \n { provide: HttpHandler, useClass: HttpInterceptingHandler }\n \n
\n \n HttpXhrBackend\n \n
\n \n { provide: HttpBackend, useExisting: HttpXhrBackend }\n \n
\n
\n\n \n\n \n \n\n\n \n\n\n
\n
\n\n\n" }