Skip to content

Instantly share code, notes, and snippets.

Avatar
🤹‍♂️

Guvanch Nurgeldiyev gnurgeldiyev

🤹‍♂️
View GitHub Profile
@gnurgeldiyev
gnurgeldiyev / api.js
Last active Aug 3, 2021
How to get the response time from Axios
View api.js
const axios = require('axios').default
const API_BASE_URL = 'https://api.spacexdata.com/v3'
const API = axios.create({
baseURL: API_BASE_URL
})
/*
* setting interceptors to be able
* to know response time of the each request