slowapi
slowapi copied to clipboard
Pass request object to limiter callbacks
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 https://github.com/laurentS/slowapi/issues/13.
@laurentS do you have any plan to add this in near future ?
Are there any news to that?