Added rate limiting

This commit is contained in:
colin99d
2023-04-11 16:09:42 -04:00
parent e257f061a4
commit d5eb0b4ba0

View File

@@ -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: