DEV Community

Discussion on: Open Discussion: Why People Prefer Axios over Fetch?

Collapse
 
shinigami92 profile image
Shinigami
  • NestJS uses axios for HttpService
  • it’s "easy" to use interceptors to add e.g. meta data to all requests/responses (like traceId and timer to log how long a call needed)
  • By default json is assumed / you don’t need res.json() everywhere