diff options
Diffstat (limited to 'wsgitools/middlewares.py')
-rw-r--r-- | wsgitools/middlewares.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index f9362b7..908b5b3 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -114,7 +114,7 @@ class ContentLengthMiddleware: of iterators possible. At most maxstore bytes will be accumulated. Please note that a value larger than 0 will violate the wsgi standard. The magical value () will make it always gather all data. - @type maxstore: number + @type maxstore: int or () """ self.app = app self.maxstore = maxstore @@ -197,7 +197,7 @@ class CachingMiddleware: def __init__(self, app, maxage=60, storable=storable, cacheable=cacheable): """ @param app: is a wsgi application to be cached. - @type maxage: number + @type maxage: int @param maxage: is the number of seconds a reponse may be cached. @param storable: is a predicate that determines whether the response may be cached at all based on the environ dict. |