diff options
Diffstat (limited to 'wsgitools/applications.py')
-rw-r--r-- | wsgitools/applications.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/wsgitools/applications.py b/wsgitools/applications.py index dcbd78a..2e6703c 100644 --- a/wsgitools/applications.py +++ b/wsgitools/applications.py @@ -2,11 +2,15 @@ class StaticContent: """This wsgi application provides static content on whatever request it receives.""" def __init__(self, status, headers, content): - """status is the HTTP status returned to the browser (ex: "200 OK") - headers is a list of (header, value) pairs being delivered as HTTP - headers - content contains the data to be delivered to the client. It is either a - string or some kind of iterable yielding strings. + """ + @type status: str + @param status: is the HTTP status returned to the browser (ex: "200 OK") + @type headers: list + @param headers: is a list of (header, value) pairs being delivered as + HTTP headers + @type content: basestring + @param content: contains the data to be delivered to the client. It is + either a string or some kind of iterable yielding strings. """ assert isinstance(status, str) assert isinstance(headers, list) |