Merge pull request #2069 from Lukasa/request

Document and initialise Response.request
This commit is contained in:
2014-05-27 11:11:21 -04:00
+4
View File
@@ -556,6 +556,10 @@ class Response(object):
#: and the arrival of the response (as a timedelta)
self.elapsed = datetime.timedelta(0)
#: The :class:`PreparedRequest <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.