class documentation
class BaseThrottle: (source)
Known subclasses: rest_framework.throttling.SimpleRateThrottle
Rate throttling of requests.
Method | allow |
Return `True` if the request should be allowed, `False` otherwise. |
Method | get |
Identify the machine making the request by parsing HTTP_X_FORWARDED_FOR if present and number of proxies is > 0. If not use all of HTTP_X_FORWARDED_FOR if it is available, if not use REMOTE_ADDR. |
Method | wait |
Optionally, return a recommended number of seconds to wait before the next request. |
overridden in
rest_framework.throttling.SimpleRateThrottle
Return `True` if the request should be allowed, `False` otherwise.
Identify the machine making the request by parsing HTTP_X_FORWARDED_FOR if present and number of proxies is > 0. If not use all of HTTP_X_FORWARDED_FOR if it is available, if not use REMOTE_ADDR.
overridden in
rest_framework.throttling.SimpleRateThrottle
Optionally, return a recommended number of seconds to wait before the next request.