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.
提供商
| 提供商 |
|---|
|
|
|
|
|
|