/
usr
/
share
/
doc
/
python3-pycurl
/
doc
/
docstrings
/
/usr/share/doc/python3-pycurl/doc/docstrings
mkdir
upload
Name
Size
Mode
Actions
curl.rst
377
0644
edit
dl
rm
curl_close.rst
319
0644
edit
dl
rm
curl_errstr.rst
465
0644
edit
dl
rm
curl_errstr_raw.rst
444
0644
edit
dl
rm
curl_getinfo.rst
3249
0644
edit
dl
rm
curl_getinfo_raw.rst
3077
0644
edit
dl
rm
curl_pause.rst
398
0644
edit
dl
rm
curl_perform.rst
220
0644
edit
dl
rm
curl_perform_rb.rst
699
0644
edit
dl
rm
curl_perform_rs.rst
1091
0644
edit
dl
rm
curl_reset.rst
276
0644
edit
dl
rm
curl_setopt.rst
4591
0644
edit
dl
rm
curl_setopt_string.rst
1236
0644
edit
dl
rm
curl_set_ca_certs.rst
144
0644
edit
dl
rm
curl_unsetopt.rst
599
0644
edit
dl
rm
multi.rst
126
0644
edit
dl
rm
multi_add_handle.rst
522
0644
edit
dl
rm
multi_assign.rst
267
0644
edit
dl
rm
multi_close.rst
291
0644
edit
dl
rm
multi_fdset.rst
900
0644
edit
dl
rm
multi_info_read.rst
695
0644
edit
dl
rm
multi_perform.rst
201
0644
edit
dl
rm
multi_remove_handle.rst
435
0644
edit
dl
rm
multi_select.rst
734
0644
edit
dl
rm
multi_setopt.rst
1438
0644
edit
dl
rm
multi_socket_action.rst
293
0644
edit
dl
rm
multi_socket_all.rst
123
0644
edit
dl
rm
multi_timeout.rst
202
0644
edit
dl
rm
pycurl_global_cleanup.rst
185
0644
edit
dl
rm
pycurl_global_init.rst
321
0644
edit
dl
rm
pycurl_module.rst
414
0644
edit
dl
rm
pycurl_version_info.rst
656
0644
edit
dl
rm
share.rst
234
0644
edit
dl
rm
share_close.rst
313
0644
edit
dl
rm
share_setopt.rst
765
0644
edit
dl
rm
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
Save
cmd:
run