Crate hyperdav[−][src]
hyperdav
The hyperdav crate provides an API for interacting with the WebDAV protocol.
It's easy to use and handles all the abstractions over HTTP for the user.
GET request
let client = Client::new() .credentials("foo", "bar") .build("https://demo.owncloud.org/remote.php/webdav/") .unwrap(); let mut res = client.get(&["file.txt"])?; let mut buf = vec![]; res.copy_to(&mut buf)?;
The GET request will return a Response from the reqwest crate on
success.
PUT request
let client = Client::new() .credentials("foo", "bar") .build("https://demo.owncloud.org/remote.php/webdav/") .unwrap(); let r = std::io::empty(); client.put(r, &["file.txt"])?;
The PUT request will return () on success just to indicate it succeeded
Structs
| Client |
The WebDAV client. Make a |
| ClientBuilder |
The builder for the |
| PropfindResponse |
Response used for listing files. |
| Response |
A Response to a submitted |
Enums
| Depth |
Define the depth to which we should search. |
| Error |
Our custom error type using Failure. |