Skip to content
Myr

Merge pull request #1904 from mjpieters/doc-response-reason

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

Document the `Response.reason` attribute.

authored by Cory Benfield · committed by Cory Benfield · parents 15ac4e5, 3443c17 · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/models.py+2 added-1 removed
515 unmodified lines
516517 self._content = False518 self._content_consumed = False519520 #: Integer Code of responded HTTP Status.520 #: Integer Code of responded HTTP Status, e.g. 404 or 200.521 self.status_code = None522523 #: Case-insensitive Dictionary of Response Headers.524 #: For example, ``headers['content-encoding']`` will return the
15 unmodified lines
540 #: the history of the Request. Any redirect responses will end541 #: up here. The list is sorted from the oldest to the most recent request.542 self.history = []543544 #: Textual reason of responded HTTP Status, e.g. "Not Found" or "OK".545 self.reason = None546547 #: A CookieJar of Cookies the server sent back.548 self.cookies = cookiejar_from_dict({})
231 unmodified lines