it will be good if it have programming usage
Suggestion -
We should have some function like
download(url string, parts int, ...other option from cmd) (event) {}
We should received event like
in case of progress
{
"status": "progress",
"parts": [
{
"part": 1,
"total_size": 1500000, // size in bytes
"downloaded": 1200000, // bytes downloaded
},
....
]
}
in case of failure
{
"status": "error",
"details": "request failed with status 404"
}
it will be good if it have programming usage
Suggestion -
We should have some function like
We should received
eventlikein case of progress
{ "status": "progress", "parts": [ { "part": 1, "total_size": 1500000, // size in bytes "downloaded": 1200000, // bytes downloaded }, .... ] }in case of failure
{ "status": "error", "details": "request failed with status 404" }