Skip to content
Myr

Add documentation about decode_unicode.

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

authored by Jason R. Coombs · committed by Jason R. Coombs · parent 03f444e · Browse files · 1 file+3 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+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/models.py+3 added
615 unmodified lines
616 request, this avoids reading the content at once into memory for617 large responses. The chunk size is the number of bytes it should618 read into memory. This is not necessarily the length of each item619 returned as decoding can take place.620621 If decode_unicode is True, content will be decoded using the best622 available encoding based on the response.623 """624 if self._content_consumed:625 # simulate reading small chunks of the content626 return iter_slices(self._content, chunk_size)
177 unmodified lines