# Http

Dans une application Angular, la plupart des données proviennent d'API ReST où les échanges de données se font via des requêtes HTTP. Cf. notre "white paper" sur les bonnes pratiques et la sécurité des API ReST <https://blog.wishtack.com/api-rest-bonnes-pratiques-et-securite/>.

Pour produire des requêtes HTTP, Angular fournit un service `HttpClient` qui est un wrapper de la classe native (et vieillissante) `XMLHttpRequest`.

{% content-ref url="/pages/-LCdGwmfL4Thr09YmNA6" %}
[Pourquoi HttpClient ?](/angular/http/pourquoi-httpclient.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LCdH82iGloObyVISYvj" %}
[Utilisation de HttpClient](/angular/http/utilisation-de-httpclient.md)
{% endcontent-ref %}


---

# 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.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.
