Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About throttleAdapterEnhancer #98

Open
Zhaocl1997 opened this issue Dec 26, 2022 · 2 comments
Open

About throttleAdapterEnhancer #98

Zhaocl1997 opened this issue Dec 26, 2022 · 2 comments

Comments

@Zhaocl1997
Copy link

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 })
@nabenzine
Copy link

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

@suhaotian
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants