Fetch vs. Axios.js for making http requests. Which should you use?
Автор: Travels Code
Загружено: 2020-03-11
Просмотров: 5079
Описание:
Check out my courses here!
https://www.udemy.com/user/maksym-rud...
In this video, we'll compare two popular methods of making HTTP requests: fetch function vs axios.js library.
Covered topics:
Installation and using
GET request
Data transformation
POST request
Error handling
Timeout
HTTP interceptors
Simultaneous requests
THIS VIDEO IS PART OF A MINI-SERIES! Check out the other parts:
#1 - JavaScript Fetch api example: • JavaScript Fetch api example
#2 - How to use Axios.js? Tutorial: • How to use Axios.js? Tutorial
#3 (this video) - Fetch vs. Axios.js for making http requests. Which should you use? • Fetch vs. Axios.js for making http request...
The main difference is - compatibility. With Axios, you can use a similar interface to Fetch in older browsers. Axios is supported up to IE9 (or 8) and fetch is supported since Edge. For those who must support older browsers, Axios is a better solution. If you want to support only new browsers, a standard rule of 2 latest versions, then Fetch is a better option.
Let's be friends:
INSTAGRAM ↣ / travels_code
TWITTER ↣ / travelscode
FACEBOOK ↣ / travelscode
WEB-SITE ↣ http://travelscode.com/
GITHUB ↣ https://github.com/MaksymRudnyi/
#JS #fetch #axios
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: