/usr/share/doc/python3-pycurl/doc/docstrings
NameSizeModeActions
curl.rst3770644editdlrm
curl_close.rst3190644editdlrm
curl_errstr.rst4650644editdlrm
curl_errstr_raw.rst4440644editdlrm
curl_getinfo.rst32490644editdlrm
curl_getinfo_raw.rst30770644editdlrm
curl_pause.rst3980644editdlrm
curl_perform.rst2200644editdlrm
curl_perform_rb.rst6990644editdlrm
curl_perform_rs.rst10910644editdlrm
curl_reset.rst2760644editdlrm
curl_setopt.rst45910644editdlrm
curl_setopt_string.rst12360644editdlrm
curl_set_ca_certs.rst1440644editdlrm
curl_unsetopt.rst5990644editdlrm
multi.rst1260644editdlrm
multi_add_handle.rst5220644editdlrm
multi_assign.rst2670644editdlrm
multi_close.rst2910644editdlrm
multi_fdset.rst9000644editdlrm
multi_info_read.rst6950644editdlrm
multi_perform.rst2010644editdlrm
multi_remove_handle.rst4350644editdlrm
multi_select.rst7340644editdlrm
multi_setopt.rst14380644editdlrm
multi_socket_action.rst2930644editdlrm
multi_socket_all.rst1230644editdlrm
multi_timeout.rst2020644editdlrm
pycurl_global_cleanup.rst1850644editdlrm
pycurl_global_init.rst3210644editdlrm
pycurl_module.rst4140644editdlrm
pycurl_version_info.rst6560644editdlrm
share.rst2340644editdlrm
share_close.rst3130644editdlrm
share_setopt.rst7650644editdlrm
Edit: /usr/share/doc/python3-pycurl/doc/docstrings/multi_setopt.rst (1438B)
setopt(option, value) -> None Set curl multi option. Corresponds to `curl_multi_setopt`_ in libcurl. *option* specifies which option to set. PycURL defines constants corresponding to ``CURLMOPT_*`` constants in libcurl, except that the ``CURLMOPT_`` prefix is replaced with ``M_`` prefix. For example, ``CURLMOPT_PIPELINING`` is exposed in PycURL as ``pycurl.M_PIPELINING``. For convenience, ``CURLMOPT_*`` constants are also exposed on CurlMulti objects:: import pycurl m = pycurl.CurlMulti() m.setopt(pycurl.M_PIPELINING, 1) # Same as: m.setopt(m.M_PIPELINING, 1) *value* specifies the value to set the option to. Different options accept values of different types: - Options specified by `curl_multi_setopt`_ as accepting ``1`` or an integer value accept Python integers, long integers (on Python 2.x) and booleans:: m.setopt(pycurl.M_PIPELINING, True) m.setopt(pycurl.M_PIPELINING, 1) # Python 2.x only: m.setopt(pycurl.M_PIPELINING, 1L) - ``*FUNCTION`` options accept a function. Supported callbacks are ``CURLMOPT_SOCKETFUNCTION`` AND ``CURLMOPT_TIMERFUNCTION``. Please refer to the PycURL test suite for examples on using the callbacks. Raises TypeError when the option value is not of a type accepted by the respective option, and pycurl.error exception when libcurl rejects the option or its value. .. _curl_multi_setopt: https://curl.haxx.se/libcurl/c/curl_multi_setopt.html