Based TypeScript from zero reconstruction axios full version

Course Introduction Chapter 1 [quietly tell you, have to look at, there are benefits]
describes the main contents of the course, through this program can learn the knowledge, learning methods introduced.

Chapter 2 acquaintance Typescript first experience []
church classmates installation Typescript compiler, and understanding TypeScript by writing the first TypeScript program.

Chapter 3 Typescript type system [necessary foundation, a firm grasp of]
some important basic concepts of TypeScript speaker, and with some specific examples of assistance in explaining the code to help students understand the common use of TypeScript, the real basis for the subsequent

4 Construction of chapter ts-axios project] [工欲善其事必先利其器
reconstruction needs analysis axios project using typescrpit-library-starter scaffolding initialize the project and write code base request, the entire demo build the infrastructure program.

Chapter 5 ts-axios basis functions implemented] [core processes
implemented Axios basic functionality, including the handling of a request url, data, header and in response to data, header of.

Chapter 6 ts-axios exception handling boundary conditions can not be neglected []
to deal with some exceptions Axios requests, including network error, request times out, a configuration error handling class information enhancement.

Chapter 7 ts-axios interface extends [rational use of factory mode, change the design ideas of]
the axios achieved from an ordinary function to change the factory design pattern through the class, and more extended call interface, the axios into a hybrid objects and to allow the response data to support generics.

Chapter 8 ts-axios clever use of interceptors to achieve [Promise] chained calls
Achieve axios interceptor function, the entire implementation of a detailed design and finally realize the interceptor chain management class and call logic.

Chapter 9 ts-axios configuration of the clever use of strategy to achieve [the merger] for configuration mode
allows axios support some of the default configuration to achieve a consolidated configuration, using different consolidation strategy based on different attributes, and extended the method to extend the default axios.create configuration, generates a new instance.

Chapter 10 ts-axios Cancel function to achieve [clever use of Asynchronous Promise separation]
achieve axios cancellation function, including the design of the interface is canceled, design and implementation of CancelToken class.

Chapter 11 ts-axios more icing on the cake [] function realization
realize axios more features, including XSRF defense, upload, http authentication and authorization, withCredentials, custom parameters serialization, custom legal status code, custom code and other legal status , to achieve hundred percent official axio in the browser's functionality.

Chapter 12 ts-axios unit testing of code quality guarantee []
introduce unit tests, and then explain the test environment to build, implement the entire axios last complete library of unit tests to ensure the test coverage of 99%

Chapter 13 ts-axios deployment [release to the community to share your project]
to explain to deploy and publish ts-axios library, written using Rollup deploy the build script, using semantic-release version and release management.

Chapter 14 Lessons Learned sort of knowledge [,] to consolidate deepen the
whole course of this review, summarize learning content.

Look at the address:
Link:  https://pan.baidu.com/s/1miM5saHNSk8-bSCIRXZgnA Extraction code: a9ke 

 

Download: Based TypeScript from zero reconstruction axios full version

Guess you like

Origin www.cnblogs.com/mingyan520/p/11297401.html