Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
520a183c
Commit
520a183c
authored
Oct 17, 2012
by
eofs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo in class name
parent
ae680b13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rest_framework/throttling.py
+4
-4
No files found.
rest_framework/throttling.py
View file @
520a183c
...
@@ -22,7 +22,7 @@ class BaseThrottle(object):
...
@@ -22,7 +22,7 @@ class BaseThrottle(object):
return
None
return
None
class
SimpleRateThottle
(
BaseThrottle
):
class
SimpleRateTh
r
ottle
(
BaseThrottle
):
"""
"""
A simple cache implementation, that only requires `.get_cache_key()`
A simple cache implementation, that only requires `.get_cache_key()`
to be overridden.
to be overridden.
...
@@ -133,7 +133,7 @@ class SimpleRateThottle(BaseThrottle):
...
@@ -133,7 +133,7 @@ class SimpleRateThottle(BaseThrottle):
return
remaining_duration
/
float
(
available_requests
)
return
remaining_duration
/
float
(
available_requests
)
class
AnonRateThrottle
(
SimpleRateThottle
):
class
AnonRateThrottle
(
SimpleRateTh
r
ottle
):
"""
"""
Limits the rate of API calls that may be made by a anonymous users.
Limits the rate of API calls that may be made by a anonymous users.
...
@@ -153,7 +153,7 @@ class AnonRateThrottle(SimpleRateThottle):
...
@@ -153,7 +153,7 @@ class AnonRateThrottle(SimpleRateThottle):
}
}
class
UserRateThrottle
(
SimpleRateThottle
):
class
UserRateThrottle
(
SimpleRateTh
r
ottle
):
"""
"""
Limits the rate of API calls that may be made by a given user.
Limits the rate of API calls that may be made by a given user.
...
@@ -175,7 +175,7 @@ class UserRateThrottle(SimpleRateThottle):
...
@@ -175,7 +175,7 @@ class UserRateThrottle(SimpleRateThottle):
}
}
class
ScopedRateThrottle
(
SimpleRateThottle
):
class
ScopedRateThrottle
(
SimpleRateTh
r
ottle
):
"""
"""
Limits the rate of API calls by different amounts for various parts of
Limits the rate of API calls by different amounts for various parts of
the API. Any view that has the `throttle_scope` property set will be
the API. Any view that has the `throttle_scope` property set will be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment