mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 16:02:43 +01:00
Add upload method
This commit is contained in:
parent
a0c5931208
commit
7848372b0f
3 changed files with 10 additions and 2 deletions
|
|
@ -82,6 +82,9 @@ struct DataTransfer
|
|||
/* Synchronously download a file. */
|
||||
DataTransferResult download(const DataTransferRequest & request);
|
||||
|
||||
/* Synchronously upload a file. */
|
||||
DataTransferResult upload(const DataTransferRequest & request);
|
||||
|
||||
/* Download a file, writing its data to a sink. The sink will be
|
||||
invoked on the thread of the caller. */
|
||||
void download(DataTransferRequest && request, Sink & sink);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue