What is Axios?
masterAxios is a promise-based HTTP client that works in both the browser and Node.js (isomorphic).
- In the browser, it uses
XMLHttpRequest. - In Node.js, it uses the native
httpmodule.
Key features include:
- Intercepting requests and responses.
- Automatic data transformation (JSON, Multipart/FormData, and URL-encoded).
- Request/Response data transformation.
- Request cancellation and timeouts.
- Automatic JSON handling in responses.
- Support for XSRF protection on the client side.
- Progress tracking for uploads and downloads.