#webdav #rustls #request

webdav-request

a lightweight webdav client library

3 unstable releases

0.3.1 Mar 5, 2025
0.3.0 Oct 30, 2024
0.2.0 Sep 26, 2024
0.1.12 Aug 11, 2024

#6 in #webdav

Download history 3/week @ 2024-12-10 7/week @ 2025-02-04 1/week @ 2025-02-11 145/week @ 2025-03-04 6/week @ 2025-03-11

152 downloads per month

MIT license

27KB
757 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::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 client = WebDAVClient::new(USERNAME, PASSWORD)?;
    let response = client.get(format!("{}/path/file", WEBDAV_URL)).await?;
    if response.status().is_success() {
        let _bytes = response.bytes().await?;
        // TODO
    }
    Ok(())
}


Dependencies

~7–21MB
~301K SLoC