proc download(url, filepath: string): Future[HttpCode] {.async.} = let client = newAsyncHttpClient() var file = openasync(filepath, fmWrite) try: let resp = await client.request(url) await file.writeFromStream(resp.bodyStream) result = resp.code except Exception as e: echo e.msg finally: client.close() file.close() Run
- downloading big files morturo
- downloading big files jrfondren
- downloading big files Lantos
- downloading big files dom96
- downloading big files morturo
- downloading big files xioren
- downloading big files xioren
- downloading big files stbalbach
- downloading big files Demos
- downloading big files stbalbach