Limiting events with variable cost?
milescrawford opened this issue · 1 comments
milescrawford commented
Hey y'all, I'm curious whether flask-limiter could help when requests have variable cost. For instance, can I count a single request against the limit with some multiplier based on the content of the request?
If not, do you all have any thoughts on how to help with this type or metering?
milescrawford commented
Aha, I see that the hit
method takes a cost when called directly! My fault, I did not see that until I dove into the API.
Thanks for the library!