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

Pass request object to limiter callbacks #41

Open
dlindenkreuz opened this issue Mar 19, 2021 · 2 comments
Open

Pass request object to limiter callbacks #41

dlindenkreuz opened this issue Mar 19, 2021 · 2 comments

Comments

@dlindenkreuz
Copy link

The request object cannot be accessed easily in some of the limiter callbacks (limit_value, exempt_when). Support for this would be really useful. This already seems to work with key_func which gets passed the request if the callback declares a request parameter.

This would also remove the need for the workaround from #13.

@Kavan72
Copy link

Kavan72 commented Jul 26, 2021

@laurentS do you have any plan to add this in near future ?

@fredi-python
Copy link

Are there any news to that?

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