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();