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

webdav-request

a lightweight webdav client library

2 unstable releases

0.3.0 Oct 30, 2024
0.2.0 Sep 26, 2024
0.1.12 Aug 11, 2024

#10 in #webdav

Download history 68/week @ 2024-07-30 205/week @ 2024-08-06 32/week @ 2024-08-13 2/week @ 2024-09-10 129/week @ 2024-09-24 17/week @ 2024-10-01 1/week @ 2024-10-08 125/week @ 2024-10-29

125 downloads per month

MIT license

28KB
741 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–22MB
~300K SLoC