| 1 |
unsetopt(option) -> None |
| 2 |
|
| 3 |
Reset curl session option to its default value. |
| 4 |
|
| 5 |
Only some curl options may be reset via this method. |
| 6 |
|
| 7 |
libcurl does not provide a general way to reset a single option to its default value; |
| 8 |
:py:meth:`pycurl.Curl.reset` resets all options to their default values, |
| 9 |
otherwise :py:meth:`pycurl.Curl.setopt` must be called with whatever value |
| 10 |
is the default. For convenience, PycURL provides this unsetopt method |
| 11 |
to reset some of the options to their default values. |
| 12 |
|
| 13 |
Raises pycurl.error exception on failure. |
| 14 |
|
| 15 |
``c.unsetopt(option)`` is equivalent to ``c.setopt(option, None)``. |