VDone Demo VDone Demo
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)

Nikolay Tuzov

Backend Developer
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)
  • 初识 TypeScript

  • TypeScript 常用语法

  • ts-axios 项目初始化

    • Requirements Analysis
      • Features
    • Initializing the Project
    • Writing Basic Request Code
  • ts-axios 基础功能实现

  • ts-axios 异常情况处理

  • ts-axios 接口扩展

  • ts-axios 拦截器实现

  • ts-axios 配置化实现

  • ts-axios 取消功能实现

  • ts-axios 更多功能实现

  • ts-axios 单元测试

  • ts-axios 部署与发布

  • 《TypeScript 从零实现 axios》
  • ts-axios 项目初始化
HuangYi
2020-01-05
Contents

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)
#TypeScript
Last Updated: 2026/03/21, 12:14:36
Advanced Types
Initializing the Project

← Advanced Types Initializing the Project→

Recent Updates
01
How I Discovered Disposable Email — A True Story
06-12
02
Animations in Grid Layout
09-15
03
Renaming a Git Branch
08-11
More Articles >
Theme by VDone | Copyright © 2026-2026 Nikolay Tuzov | MIT License | Telegram
  • Auto
  • Light Mode
  • Dark Mode
  • Reading Mode