2 unstable releases
0.3.0 | Oct 30, 2024 |
---|---|
0.2.0 | Sep 26, 2024 |
0.1.12 |
|
#10 in #webdav
125 downloads per month
28KB
741 lines
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