Skip to content
Myr

added Request.read

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 2401f14 · 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/core.py+2 added-1 removed
158 unmodified lines
159 return '%s?%s' % (url, data)160 else:161 return url162163163 def send(self, anyway=False):164 """Sends the request. Returns True of successful, false if not.165 If there was an HTTPError during transmission,166 self.response.status_code will contain the HTTPError code.
48 unmodified lines
215216 return self.sent217218219 def read(self):220 return self.content221 222class Response(object):223 """The :class:`Request` object. All :class:`Request` objects contain a224 :class:`Request.response <response>` attribute, which is an instance of
288 unmodified lines