Searched refs:_safe_read (Results 1 - 2 of 2) sorted by relevance

/external/python/cpython2/Lib/
H A Dhttplib.py213 # maximal amount of data to read at one time in _safe_read
581 s = self._safe_read(self.length)
594 # we do not use _safe_read() here because this may be a .will_close
631 value.append(self._safe_read(chunk_left))
633 value.append(self._safe_read(amt))
637 value.append(self._safe_read(amt))
638 self._safe_read(2) # toss the CRLF at the end of the chunk
642 value.append(self._safe_read(chunk_left))
646 self._safe_read(2) # toss the CRLF at the end of the chunk
667 def _safe_read(sel member in class:HTTPResponse
[all...]
/external/python/cpython3/Lib/http/
H A Dclient.py109 # maximal amount of data to read at one time in _safe_read
462 s = self._safe_read(self.length)
490 # we do not use _safe_read() here because this may be a .will_close
544 self._safe_read(2) # toss the CRLF at the end of the chunk
566 value.append(self._safe_read(chunk_left))
596 def _safe_read(self, amt): member in class:HTTPResponse
620 """Same as _safe_read, but for reading into a buffer."""

Completed in 116 milliseconds