Skip to content
Myr

apparent_encoding

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 4c3b9df · Browse files · 1 file+5 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:requests/models.py+5 added
416 unmodified lines
417 except RequestException:418 return False419 return True420421 @property422 def apparent_encoding(self):423 """The apparent encoding, provided by the lovely Charade library."""424 return chardet.detect(self.content)['encoding']425426 def iter_content(self, chunk_size=1, decode_unicode=False):427 """Iterates over the response data. This avoids reading the content428 at once into memory for large responses. The chunk size is the number429 of bytes it should read into memory. This is not necessarily the
161 unmodified lines