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.
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 withkey_func
which gets passed therequest
if the callback declares arequest
parameter.This would also remove the need for the workaround from https://github.com/laurentS/slowapi/issues/13.