From 96f6f1e2f3d575f283cb7fa03dae00b79a2fd6af Mon Sep 17 00:00:00 2001 From: franck cuny Date: Tue, 7 Feb 2012 20:46:14 -0800 Subject: [PATCH] Add types for the constructor Signed-off-by: franck cuny --- http/response.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http/response.py b/http/response.py index 4be6445..08366fb 100644 --- a/http/response.py +++ b/http/response.py @@ -14,10 +14,13 @@ def __init__(self, status, headers=Headers(), content=None, Construct a new ``Response`` object. :param status: HTTP status code for the response - :param headers: a list of tuples or a class:`Headers` object + :type status: integer + :param headers: HTTP headers + :type status: a list of tuples or a class:`Headers` object :param content: content :param message: HTTP message for the response :param request: origin Request object used + :type request: class:`Request` .. attribute:: redirects