填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

HttpClientModule

为支持 XSRF 的 HttpClient 配置依赖注入器。它会被 HttpClientModule 自动导入。

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

查看"说明"...

      
      class HttpClientModule {
}
    

说明

通过把拦截器提供为内置的 DI 令牌 HTTP_INTERCEPTORS(允许有多个),你可以把它们添加到 HttpClient 调用链的后面。

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

提供商

提供商
      
      HttpClient
    
{ provide: HttpHandler, useClass: HttpInterceptingHandler }
      
      { provide: HttpHandler, useClass: HttpInterceptingHandler }
    
      
      HttpXhrBackend
    
      
      { provide: HttpBackend, useExisting: HttpXhrBackend }
    
BrowserXhr
      
      BrowserXhr
    
{ provide: XhrFactory, useExisting: BrowserXhr }
      
      { provide: XhrFactory, useExisting: BrowserXhr }