BackupClient: add upload() function

This commit is contained in:
Dietmar Maurer 2019-09-19 13:59:24 +02:00
parent 6d4df36c3c
commit 15bb1bba89

View File

@ -601,6 +601,15 @@ impl BackupClient {
self.h2.post(path, param).await
}
pub async fn upload(
&self,
path: &str,
param: Option<Value>,
data: Vec<u8>,
) -> Result<Value, Error> {
self.h2.upload(path, param, data).await
}
pub async fn finish(self: Arc<Self>) -> Result<(), Error> {
let h2 = self.h2.clone();