[−][src]Crate rustydav
This is a small library written in rust and inspired by hyperdav and uses reqwest library as the base.
This library can be used to make calls to webdav server
include rustydav as a dependency
[dependencies] rustydav = "0.1.1"
Then add rustydav to your code
extern crate rustydav; use rustydav::client; use rustydav::prelude::*;
Create a client
let client = client::Client::init(/*username*/, /*password*/);
Now you can use the client to call any of supported methods: get, put, delete, unzip, mkcol, mv, list. All the paths used by the methods should be absolute on the webdav server to the required file, folder, zip.
Every method will return a Result<Response, Error>
if (result.ok() { // the method completed with success } else { // somenting when wrong }
Modules
client | |
prelude |