Add support for streaming transfers (#353)
This change adds onChunkCallback to the request. If defined it will be called repeatedly with the incoming data. This allows to process data on the go or write it to disk instead of accumulating the data in memory.
This commit is contained in:
1 parent
c28b569535
commit
db7057de69
8 files changed
+120
-17
No files matched your search
@@ -89,6 +89,7 @@ namespace ix
|
||||
bool compressRequest = false;
|
||||
Logger logger;
|
||||
OnProgressCallback onProgressCallback;
|
||||
OnChunkCallback onChunkCallback;
|
||||
std::atomic<bool> cancel;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user