| 1 |
send(bytes) -> count |
| 2 |
|
| 3 |
Send data over a connection established with ``CONNECT_ONLY``. |
| 4 |
|
| 5 |
*data* may be any bytes-like object. |
| 6 |
|
| 7 |
Returns the number of bytes sent. If fewer than ``len(data)`` bytes are sent, |
| 8 |
the remaining data should be sent in a subsequent call. |
| 9 |
|
| 10 |
Corresponds to `curl_easy_send`_ in libcurl. |
| 11 |
|
| 12 |
Because the underlying socket is used in non-blocking mode internally, |
| 13 |
this method raises ``BlockingIOError`` with ``errno`` set to ``EAGAIN`` |
| 14 |
when libcurl returns ``CURLE_AGAIN``. |
| 15 |
|
| 16 |
Raises pycurl.error exception upon failures other than ``CURLE_AGAIN``. |
| 17 |
|
| 18 |
.. _curl_easy_send: https://curl.se/libcurl/c/curl_easy_send.html |