MCPcopy
hub / github.com/urllib3/urllib3 / sendall

Method sendall

src/urllib3/contrib/pyopenssl.py:360–366  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

358 raise OSError(e.args[0], str(e)) from e
359
360 def sendall(self, data: bytes) -> None:
361 total_sent = 0
362 while total_sent < len(data):
363 sent = self._send_until_done(
364 data[total_sent : total_sent + SSL_WRITE_BLOCKSIZE]
365 )
366 total_sent += sent
367
368 def shutdown(self, how: int) -> None:
369 try:

Callers

nothing calls this directly

Calls 1

_send_until_doneMethod · 0.95

Tested by

no test coverage detected