Skip to content

rvibit/axios-request-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

axios-request-timer

Axios interceptor to mesaure request time

Usage

Copy the file into your project then create axios instance and apply interceptors

//create axios instance

const http = axios.create({
  baseURL: '',
  headers: {},
});

//apply interceptors
http.interceptors.request.use(httpTimer().requestTimer);
http.interceptors.response.use(httpTimer().responseTimer);

About

Axios intercepter to mesaure request time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published