Skip to content
Myr

Response.read() [file like object]

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent e350bea · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:requests/core.py+3 added-1 removed
215 unmodified lines
216 return self.sent217218219 def read(self):220 return self.content220 return self.response.read()221 222class Response(object):223 """The :class:`Request` object. All :class:`Request` objects contain a224 :class:`Request.response <response>` attribute, which is an instance of
23 unmodified lines
248 """Raises stored HTTPError if one exists."""249 if self.error:250 raise self.error251252 def read(self):253 return self.content254255256class AuthManager(object):257 """Authentication Manager."""
257 unmodified lines