Write some data bytes to the transport. This does not block; it buffers the data and arranges for it to be sent out asynchronously.
(self, data)
| 209 | return self._ssl_protocol._app_writing_paused |
| 210 | |
| 211 | def write(self, data): |
| 212 | """Write some data bytes to the transport. |
| 213 | |
| 214 | This does not block; it buffers the data and arranges for it |
| 215 | to be sent out asynchronously. |
| 216 | """ |
| 217 | if not isinstance(data, (bytes, bytearray, memoryview)): |
| 218 | raise TypeError(f"data: expecting a bytes-like instance, " |
| 219 | f"got {type(data).__name__}") |
| 220 | if not data: |
| 221 | return |
| 222 | self._ssl_protocol._write_appdata((data,)) |
| 223 | |
| 224 | def writelines(self, list_of_data): |
| 225 | """Write a list (or any iterable) of data bytes to the transport. |
no test coverage detected