Under the hood, axios uses the node http module or the XMLHttpRequest depending on whether the code runs on the back end or front end. It's a fan favourite among full-stack developers who do not need to learn separate libraries and syntax when switching between back-end and frontend. Why? Because axios can run both in front-end and in the back-end! You've noticed that I have not mentioned axios. JavaScript, both on the client and server side, supplies developers with many options to achieve this.Īll of them allow developers to send and receive HTTP requests. Sending and receiving data from other services using an interface is fundamental in most modern web applications. This article relies on the official documentation about the HTTP Module Introduction In this article, we're going to explore how we use axios in NestJS with a practical example.
0 Comments
Leave a Reply. |