24 Commits

Author SHA1 Message Date
Alexey Melnichuk
2df3cd8538 Update copyright date/email [ci skip] 2016-04-20 11:23:43 +03:00
Alexey Melnichuk
9d7fdac27c Add. Module version info 2016-04-20 10:31:06 +03:00
Alexey Melnichuk
d0dbfcd9d0 Do not use dummy option. 2016-04-17 10:12:12 +03:00
Alexey Melnichuk
d69a0447ad Fix. cURL set stream depends options 2016-04-17 10:04:07 +03:00
Alexey Melnichuk
21eb198ddb Fix. export internal functions to global environment. 2015-05-05 12:17:10 +04:00
Alexey Melnichuk
1738369579 Fix. multi iterator in v2 and v3 API. 2014-12-22 14:29:18 +04:00
Alexey Melnichuk
273212fb93 Fix. socket callback get correct cURLv3 easy object. 2014-12-22 13:59:09 +04:00
Alexey Melnichuk
0ba125dfc3 Fix. cURLv3 info_read return correct object. 2014-12-22 13:13:24 +04:00
Alexey Melnichuk
e7712b9eb2 Fix. Init socket callback with nil.
Fix. `multi.setopt` supports socket callback.
Change. `socket_acttion` without args means timeout action.
Change. cURLv3 multi supports options in callback.
Add. `multi-uv` example.
2014-12-22 11:14:13 +04:00
Alexey Melnichuk
764b071989 Change. cURL wrapper store proxy functions in class not in object.
Fix. Test for stream reader.
2014-09-19 11:25:34 +05:00
Alexey Melnichuk
8d7678e22b Change. cURLv2 support numeric values for flags (not only string)
```Lua
c:setopt_proxytype("HTTP")
c:setopt_proxytype(curl.PROXY_HTTP)
```
2014-09-18 18:32:58 +05:00
Alexey Melnichuk
3178580a08 Fix. Ignore unknown tables in form:add().
Fix. Check type for `headers` field.
Add. Supports `content` field in form:add().
2014-09-17 12:14:47 +05:00
Alexey Melnichuk
1d45b60687 Change. multi:ipreform unset callback function for easy handles.
Add. cURLv2 interface support add easy handle to multi during iteration.
2014-09-17 10:24:17 +05:00
Alexey Melnichuk
9ffd3f01de Update comments. [ci skip] 2014-09-16 13:45:27 +05:00
Alexey Melnichuk
ba7aedebcb Add. Ability to add easy handle during iteration. 2014-09-15 15:03:27 +05:00
Alexey Melnichuk
aff3042434 Change. Returns nothing form reader callback means EOF.
Change. multi:iperform() remove easy handle when it done.
2014-09-15 13:17:13 +05:00
Alexey Melnichuk
1285ae42c5 Add. Form class to Lua-cURLv3 interface.
See examples/cURLv3/post_form.lua
2014-09-12 11:46:43 +05:00
Alexey Melnichuk
1b88ec42b8 Fix. multi:info_read correctly remove easy handle. 2014-09-11 14:39:24 +05:00
Alexey Melnichuk
b2e6bcae4e Fix. add_handle/remove_handle on cURLv3
Add. Examples for cURLv3
2014-09-11 12:50:48 +05:00
Alexey Melnichuk
56a47e12d0 Fix. Remove easy handle from multi handle 2014-09-11 12:27:29 +05:00
Alexey Melnichuk
4a7901fc8c Add. libcurl 7.38.0 constants 2014-09-10 16:44:10 +05:00
Alexey Melnichuk
bf4b8b0b0b Change. multi iterator returns response code as data for done row 2014-09-10 15:20:58 +05:00
Alexey Melnichuk
8d3c696c4c Implement iterator multi.iperform and method easy.perform for easy.
```Lua
local cURL = require("lcurl")
c1 = cURL.easy{url = "http://www.lua.org/"}
c2 = cURL.easy{url ="http://luajit.org/"}
m = cURL.multi()
  :add_handle(c1)
  :add_handle(c2)
for a,b,c in m:iperform() do ... end
```
2014-09-10 14:00:24 +05:00
Alexey Melnichuk
71c0deb903 Add. cURL.safe module. 2014-09-10 13:13:44 +05:00