From 15bb1bba894452819416864884d29b99933d0965 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 19 Sep 2019 13:59:24 +0200 Subject: [PATCH] BackupClient: add upload() function --- src/client/http_client.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/client/http_client.rs b/src/client/http_client.rs index 622ca6c3..e524dcfa 100644 --- a/src/client/http_client.rs +++ b/src/client/http_client.rs @@ -601,6 +601,15 @@ impl BackupClient { self.h2.post(path, param).await } + pub async fn upload( + &self, + path: &str, + param: Option, + data: Vec, + ) -> Result { + self.h2.upload(path, param, data).await + } + pub async fn finish(self: Arc) -> Result<(), Error> { let h2 = self.h2.clone();