Closed pysco68 closed 1 year ago
Downloading huge files to memory is kind-of expensive and was blocking me the other day on a memory-constrained env.
This PR adds a DownloadTo argument which can be used as in:
DownloadTo
GET( "https://nxxm.indigenious.io/distro/all/clang/v13.0.0/clang-13-windows-64bit.zip"s, DownloadTo("test.out.zip", [](auto &resp, auto &out_path, size_t file_size) { /** .... download completed ... */ }, [](size_t dltotal, size_t dlnow) { /** ...download progress... */ } ) );
⚠️ currently only implemented on-top the CPR/curl backend branch. The Boost::BEAST backend def. requires more work as we would have to port the Proxy support as well at the same time
This has been made part of #17 , closing as approved.
Downloading huge files to memory is kind-of expensive and was blocking me the other day on a memory-constrained env.
This PR adds a
DownloadTo
argument which can be used as in:⚠️ currently only implemented on-top the CPR/curl backend branch. The Boost::BEAST backend def. requires more work as we would have to port the Proxy support as well at the same time