Commit 2e106431 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

events: Docs for lua version of download

parent b04cbb83
......@@ -76,6 +76,23 @@ Currently, there's no way to cancel running command from lua, since
that would make the wrapper code needlessly complex (while there seems
to be no need to cancel them currently).
The other event is `download`:
function callback(status, content)
if status == 200 then
print("Downloaded: " .. content)
print("Download failed (" .. content .. ")")
local id = download(callback, "", "/path/to/cert", "/path/to/crl")
The example is mostly self-explanatory and again, this acts very
similar to the C version.
Filesystem manipulation
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment