mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
docstring
This commit is contained in:
parent
1fef619819
commit
bbc9c635b0
@ -91,6 +91,12 @@ class DummyStorage(object):
|
||||
|
||||
|
||||
class GetCounter(Resource):
|
||||
"""
|
||||
``GetCounter`` is a resource that returns a count of the number of times
|
||||
it has rendered a response to a GET request.
|
||||
|
||||
:ivar int value: The number of ``GET`` requests rendered so far.
|
||||
"""
|
||||
value = 0
|
||||
def render_GET(self, request):
|
||||
self.value += 1
|
||||
|
Loading…
Reference in New Issue
Block a user