From: Cory Benfield Date: Mon, 26 May 2014 15:40:45 +0000 (+0100) Subject: Document and initialise Response.request X-Git-Tag: v2.4.0~49^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3346ad1134bbf50e9d9ad36ddd396536c18fe6bc;p=services%2Fpython-requests.git Document and initialise Response.request --- diff --git a/requests/models.py b/requests/models.py index 120968f..5475c14 100644 --- a/requests/models.py +++ b/requests/models.py @@ -556,6 +556,10 @@ class Response(object): #: and the arrival of the response (as a timedelta) self.elapsed = datetime.timedelta(0) + #: The :class:`PreparedRequest ` object to which this + #: is a response. + self.request = None + def __getstate__(self): # Consume everything; accessing the content attribute makes # sure the content has been fully read.