Skip to content
Myr

Document and initialise Response.request

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent a7c2184 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/models.py+4 added
554 unmodified lines
555 #: The amount of time elapsed between sending the request556 #: and the arrival of the response (as a timedelta)557 self.elapsed = datetime.timedelta(0)558559 #: The :class:`PreparedRequest <PreparedRequest>` object to which this560 #: is a response.561 self.request = None562563 def __getstate__(self):564 # Consume everything; accessing the content attribute makes565 # sure the content has been fully read.566 if not self._content_consumed:
241 unmodified lines