Most front-end applications need to communicate with a server over the HTTP protocol, to download or upload data and access other back-end services. Angular provides a client HTTP API for Angular applications, the HttpClient
service class in @angular/common/http
.
HTTP client service features
The HTTP client service offers the following major features:
- The ability to request typed response values
- Streamlined error handling
- Request and response interception
- Robust testing utilities