File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,21 @@ end
103
103
104
104
Sets options on libcurl's "easy" interface. `option` corresponds to libcurl options on https://curl.se/libcurl/c/curl_easy_setopt.html
105
105
"""
106
- setopt (easy:: Easy , option:: Integer , value) =
107
- @check curl_easy_setopt (easy. handle, option, value)
106
+ function setopt (easy:: Easy , option:: Integer , value)
107
+ res = @check curl_easy_setopt (easy. handle, option, value)
108
+ @debug " Easy setopt: $(option) = $(value) (res: $(res) )"
109
+ return res
110
+ end
108
111
109
112
"""
110
113
setopt(multi::Multi, option::Integer, value)
111
114
112
115
Sets options on libcurl's "multi" interface. `option` corresponds to libcurl options on https://curl.se/libcurl/c/curl_multi_setopt.html
113
116
"""
114
- setopt (multi:: Multi , option:: Integer , value) =
115
- @check curl_multi_setopt (multi. handle, option, value)
117
+ function setopt (multi:: Multi , option:: Integer , value)
118
+ res = @check curl_multi_setopt (multi. handle, option, value)
119
+ @debug " Multi setopt: $(option) = $(value) (res: $(res) )"
120
+ return res
121
+ end
116
122
117
123
end # module
You can’t perform that action at this time.
0 commit comments