Requirements Analysis
# Requirements Analysis
In the upcoming chapters, we will use TypeScript to rebuild axios. Before we begin, let's do some simple requirements analysis to see which features we need to support in this rebuild.
# Features
- Use XMLHttpRequest objects for communication in the browser
- Support the Promise API
- Support request and response interceptors
- Support request data and response data transformations
- Support request cancellation
- Automatic JSON data conversion
- Client-side XSRF protection
Additionally, we will support some other features that the axios library provides. It's important to note that this rebuild does not include the Node.js implementation of axios, since that part is rarely used in our day-to-day projects and involves a lot of Node.js knowledge. Covering everything would be time-consuming and might distract from the main focus. Of course, based on feedback, if there's strong interest, this content may be added as supplementary material in future lessons.
Now let's get started with project initialization!
Edit (opens new window)
Last Updated: 2026/03/21, 12:14:36