Posts about Axios
Organizing and testing HTTP requests
Node.js May 24, 2022
Learn to send HTTP requests with Axios in a TypeScript Node.js service. How to mock responses in local development and tests with Jest, mockserver and supertest.
- Node.js
- TypeScript
- Express.js
- Axios
- Jest
Connection pooling with Axios and agentkeepalive
Node.js May 25, 2022
Learn to use a connection pool with Axios and agentkeepalive for HTTP requests in a TypeScript Node.js service.
- Node.js
- TypeScript
- Axios
Pino JSON logging of Axios HTTP requests
Node.js May 25, 2022
Learn to configure the Pino JSON logger to automatically log each outgoing Axios HTTP request.
- Node.js
- TypeScript
- Axios
- Pino
Axios HTTP error handling in Express.js
Node.js May 26, 2022
Don't catch all exceptions! Learn to handle erroneous HTTP responses of Axios with an Express.js handler returning a 500 and logging an error.
- Node.js
- TypeScript
- Express.js
- Axios
- Pino
Axios HTTP request authentication with JWT
Node.js May 26, 2022
Learn to authenticate outgoing HTTP requests with Axios interceptors. Retrieving JWT with different scope, caching the JWT and attaching the authorization header.
- Node.js
- TypeScript
- Axios
- JWT