# Pourquoi HttpClient ?

Le service `HttpClient` a pour avantages de :

* **simplifier** l'implémentation d'échanges HTTP,
* fournir les **outils** nécessaires pour faciliter l'implémentation des "**tests unitaires**",
* se baser sur les **`Observable`**&#x73; permettant ainsi :
  * **d'annuler les requêtes** si nécessaire,
  * de suivre la **progression** d'"upload" et de "download",
  * d'implémenter des **wrappers** permettant de produire une "response" à partir d'un résultat temporaire en cache puis le résultat reçu depuis l'API. Cf. <https://github.com/wishtack/wishtack-steroids/tree/develop/packages/rest-cache>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide-angular.wishtack.io/angular/http/pourquoi-httpclient.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
