Alexey Melnichuk
ab815645ed
Add. Note about test fail. [ci skip]
2014-09-08 13:28:47 +04:00
Alexey Melnichuk
b575ca74c9
Revert "Change. Use httpbin.org to test"
...
This reverts commit 52834c0e019a636be0fac9c4589925b5b53cd293.
2014-09-08 13:09:50 +04:00
Alexey Melnichuk
52834c0e01
Change. Use httpbin.org to test
2014-09-08 13:09:08 +04:00
Alexey Melnichuk
f2ab8ee8a6
Fix. Return nil from read callback means EOF.
2014-09-08 10:45:52 +05:00
Alexey Melnichuk
c79e255662
Update test
2014-09-08 10:22:04 +05:00
Alexey Melnichuk
3fba1d6b61
Update test
2014-09-07 16:08:25 +04:00
Alexey Melnichuk
1062805482
Fix. read callback hangup if it returns wrong value
2014-09-07 13:54:54 +04:00
Alexey Melnichuk
e30104bc44
Fix. Progress function should return 1
to continue.
2014-09-05 16:18:36 +05:00
Alexey Melnichuk
6453a60c4a
Update test
2014-09-04 18:16:33 +05:00
Alexey Melnichuk
8f4a0980ca
Fix. Returns nil from write callback treat as write error.
2014-09-04 18:11:03 +05:00
Alexey Melnichuk
db7e541e09
Fix. Remove values from storage on unset.
...
Fix. Set callback with context.
2014-09-03 11:16:10 +05:00
Alexey Melnichuk
21106ca7bd
Fix. Reset options will also reset value in storage.
...
```Lua
-- Fixed
e:setopt_httppost(curl.form())
e:setopt_httppost(curl.form())
-- `e` store 2 form object and the will alive until `e` is alive.
```
2014-09-01 16:19:51 +05:00
Alexey Melnichuk
ee905b4209
Add. easy escape test.
2014-09-01 15:34:42 +05:00
Alexey Melnichuk
7aa70f9a59
Change. Write callback can return any true value (except numbers).
...
For example in Lua 5.2 file:write method returns `self`.
``` Lua
function write(str)
return #str - 1 -- this is error (number less than #str)
end
function write(str)
return {} -- this is pass
end
```
2014-09-01 14:53:25 +05:00