axios-extensions icon indicating copy to clipboard operation
axios-extensions copied to clipboard

About throttleAdapterEnhancer

Open Zhaocl1997 opened this issue 2 years ago • 2 comments

Can throttleAdapterEnhancer be configed for single endpoint like cacheAdapterEnhancer does? Declare a config for AxiosRequestConfig and override the options passed in for adapter entrance. So it can be used more flexible.

myAxios.get('/endpoint', { threshold: 250 })

Zhaocl1997 avatar Dec 26 '22 08:12 Zhaocl1997

This would be a killer feature ! I don't want to throttle all endpoint ! any alternatives @Zhaocl1997 ?

nabenzine avatar Nov 17 '23 15:11 nabenzine

@nabenzine do you want give xior a try(axios alternative lib)? xior provide this feature https://github.com/suhaotian/xior?tab=readme-ov-file#request-throttle-plugin

suhaotian avatar Apr 12 '24 00:04 suhaotian