Debian Codegraph @

doc/docstrings/curl_perform_rb.rst

raw
1 perform_rb() -> response_body
2
3 Perform a file transfer and return response body as a byte string.
4
5 This method arranges for response body to be saved in a BytesIO
6 instance, then invokes :ref:`perform <perform>`
7 to perform the file transfer, then returns the value of the BytesIO
8 instance which is a ``bytes`` instance. Errors during transfer raise
9 ``pycurl.error`` exceptions just like in :ref:`perform <perform>`.
10
11 Use :ref:`perform_rs <perform_rs>` to retrieve response body as a ``str``.
12
13 Raises ``pycurl.error`` exception upon failure.
14
15 *Added in version 7.43.0.2.*