16 releases

0.2.1 Apr 21, 2025
0.1.15 Mar 21, 2025
0.1.14 Oct 28, 2024
0.1.13 Jul 31, 2024
0.1.1 Sep 9, 2022

#62 in HTTP client

Download history 939/week @ 2025-01-11 779/week @ 2025-01-18 734/week @ 2025-01-25 1570/week @ 2025-02-01 1211/week @ 2025-02-08 1133/week @ 2025-02-15 927/week @ 2025-02-22 1790/week @ 2025-03-01 1314/week @ 2025-03-08 4010/week @ 2025-03-15 2242/week @ 2025-03-22 2737/week @ 2025-03-29 2988/week @ 2025-04-05 2535/week @ 2025-04-12 2963/week @ 2025-04-19 2388/week @ 2025-04-26

11,263 downloads per month
Used in 6 crates (3 directly)

MIT/Apache

55KB
1K SLoC

Reqwest dav

crates.io Documentation MIT/Apache-2 licensed CI

An async webdav client for rust with tokio and reqwest

Features

  • Authentication
    • Basic
    • Digest
  • Files management
    • Get
    • Put
    • Mv
    • Cp
    • Delete
    • Mkcol
    • List

Examples

use crate::{Auth, ClientBuilder, Depth, Error};

#[tokio::test]
async fn it_works() -> Result<(), Error> {
  
    // build a client
    let client = ClientBuilder::new()
        .set_host("http://server/remote.php/dav/files/username/".to_string())
        .set_auth(Auth::Basic("username".to_owned(), "password".to_owned()))
        .build()?;

    // list files
    println!(
        "{}",
        serde_json::to_string(&client.list("", Depth::Infinity).await?).unwrap()
    );
  
    // delete a file
    client.delete("1.txt").await.unwrap();

    Ok(())
}

Dependencies

~8–21MB
~280K SLoC