javascriptnode.jsnestjsnode-fetchnodejs-server

Inspecting outgoing HTTP requests in a nodejs application


I am using NestJS to build a web app from which I call an external API to retrieve data. Now, I want to inspect all the requests that are sent from my app. For example, in a web browser, I can inspect all the requests I send to my server through the console.

Could you please advise on how I can achieve this? Whether it's in Node.js, NestJS, or by using some other software.

NOTE: I am using node-fetch to make network calls.


Solution

  • I found the solution, there is a tool (httptoolkit) that allows to inspect all the requests that are sent from anywhere (browser, container, terminal ...)