#webdav #request #rustls #client #http-request

webdav-request

a lightweight webdav client library

1 unstable release

0.2.0 Sep 26, 2024
0.1.12 Aug 11, 2024
0.1.11 Aug 9, 2024
0.1.1 Aug 9, 2024
0.1.0 Aug 4, 2024

#9 in #webdav

Download history 63/week @ 2024-07-29 180/week @ 2024-08-05 62/week @ 2024-08-12 2/week @ 2024-09-16 121/week @ 2024-09-23 25/week @ 2024-09-30

148 downloads per month

MIT license

23KB
611 lines

Crate Info

wevdav-request

webdav-request a lightweight webdav client library, based on reqwest.

WARNING

This is a library under development and is not stable.

Getting Started

use webdav_request::{Auth, WebDAVClient};

const WEBDAV_URL: &str = "https://your.webdav.com";
const USERNAME: &str = "name";
const PASSWORD: &str = "password";

#[tokio::main]
async fn main() -> webdav_request::error::Result<()> {
    let auth = Auth::new(USERNAME, PASSWORD);
    let client = WebDAVClient::new(Some(auth), Some(WEBDAV_URL))?;
    let response = client.get("/path/file").await?;
    if response.status().is_success() {
        let _bytes = response.bytes().await?;
        // TODO
    }
    Ok(())
}


Dependencies

~6–20MB
~294K SLoC