http.http.download
Declaration
lua
http.download(url, path [, timeout, resume])
Description
Download file with optional resume support.
Parameters
`url` (string)
`path` (string) — save path
`timeout` (number, optional)
`resume` (boolean, optional) — resume partial download
Return Values
`boolean` success
`table` info — {resource_size, start_pos, size_download, speed_download}
Example
lua
local ok, info = http.download("https://example.com/file.zip", "file.zip", 60, true)