Skip to content
Myr

Merge branch 'develop' of git://github.com/kennethreitz/requests into develop

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

authored by Den Shabalin · committed by Den Shabalin · parents 03e18bb, c811022 · Browse files · 3 files+8 added−9 removed
This commit

State

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

Diff stats

3 files+8 added−9 removed

  • other:+8 added−9 removed

3 files+8 added−9 removed

modified:docs/community/faq.rst+6 added-3 removed
1 unmodified line
23Frequently Asked Questions4==========================56This part of the documentation covers common questions about Requests.6This part of the documentation answers common questions about Requests.78Encoded Data?9-------------1011Requests automatically decompresses GZip'ed responses, and decodes12response conten tinto unicode when encoding information is available.11Requests automatically decompresses gzip-encoded responses, and does12it's best to decodes response content to unicode when possible.1314You can get direct access to the raw reasponse (and even the socket),15if needed as well.161718Custom User-Agents?19-------------------2021Requests allows you to easily override User-Agent strings, along with
47 unmodified lines
modified:requests/models.py+1 added-6 removed
440 unmodified lines
441 @property442 def content(self):443 """Content of the response, in bytes or unicode444 (if available)."""445 445446 if self._content is not None:447 return self._content448449 # Read the contents.
12 unmodified lines
462463 return self._content464465466 @content.setter467 def content(self, value):468 self._content = value469470466 def raise_for_status(self):467 """Raises stored :class:`HTTPError` or :class:`URLError`, if one occured."""468 if self.error:469 raise self.error
177 unmodified lines
modified:AUTHORS+1 added
39 unmodified lines
40- Mikko Ohtamaa41- Den Shabalin42- Alejandro Giacometti43- Rick Mak44- Den Shabalin