MCPcopy
hub / github.com/urllib3/urllib3 / recv_into

Method recv_into

src/urllib3/util/ssltransport.py:89–99  ·  view source on GitHub ↗
(
        self,
        buffer: _WriteBuffer,
        nbytes: int | None = None,
        flags: int = 0,
    )

Source from the content-addressed store, hash-verified

87 return self._wrap_ssl_read(buflen)
88
89 def recv_into(
90 self,
91 buffer: _WriteBuffer,
92 nbytes: int | None = None,
93 flags: int = 0,
94 ) -> None | int | bytes:
95 if flags != 0:
96 raise ValueError("non-zero flags not allowed in calls to recv_into")
97 if nbytes is None:
98 nbytes = len(buffer)
99 return self.read(nbytes, buffer)
100
101 def sendall(self, data: bytes, flags: int = 0) -> None:
102 if flags != 0:

Calls 1

readMethod · 0.95

Tested by 2