mirror of
https://github.com/laurentS/slowapi.git
synced 2026-03-13 09:10:20 +08:00
Added rate limiting
This commit is contained in:
@@ -35,6 +35,10 @@ class Limit(object):
|
||||
def is_exempt(self, request: Request) -> bool:
|
||||
"""
|
||||
Check if the limit is exempt.
|
||||
|
||||
** parameter **
|
||||
* **request**: the request object
|
||||
|
||||
Return True to exempt the route from the limit.
|
||||
"""
|
||||
if self.exempt_when is None:
|
||||
|
||||
Reference in New Issue
Block a user