mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit introduces the main components of the `provideHttpClient()` provider API, designed in the style of `provideRouter()`. Initial features are defined for including legacy class-based interceptors, JSONP support, and configuring or disabling the builtin XSRF protection. This API is an alternative to providing `HttpClient` via the `HttpClientModule`, and is more tree-shakable and more capable than the NgModule implementation. Tests are included to validate the new configuration format as well as the interoperability of the two styles of providing and configuring `HttpClient`. PR Close #47502 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| client_spec.ts | ||
| context_spec.ts | ||
| headers_spec.ts | ||
| jsonp_mock.ts | ||
| jsonp_spec.ts | ||
| module_spec.ts | ||
| params_spec.ts | ||
| provider_spec.ts | ||
| request_spec.ts | ||
| response_spec.ts | ||
| xhr_mock.ts | ||
| xhr_spec.ts | ||
| xsrf_spec.ts | ||