mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
docstring
This commit is contained in:
parent
1fef619819
commit
bbc9c635b0
@ -91,6 +91,12 @@ class DummyStorage(object):
|
|||||||
|
|
||||||
|
|
||||||
class GetCounter(Resource):
|
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
|
value = 0
|
||||||
def render_GET(self, request):
|
def render_GET(self, request):
|
||||||
self.value += 1
|
self.value += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user