Document and initialise Response.request

This commit is contained in:
Cory Benfield
2014-05-26 16:40:45 +01:00
parent a7c218480d
commit 3346ad1134
+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.