1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # rustydav
//!
//! [](https://github.com/andreinbio/rustydav/actions?query=workflow%3Abuild)
//! [](https://github.com/andreinbio/rustydav/actions?query=workflow%3Atest)
//! [](https://crates.io/crates/rustydav)
//! [](https://docs.rs/rustydav)
//! [](./LICENSE)
//!
//! This is a small library written in rust and inspired by [hyperdav](https://gitlab.com/Gahr/hyperdav) and uses [reqwest](https://github.com/seanmonstar/reqwest) library as the base.
//!
//! This library can be used to make calls to webdav server
//!
//! Supported methods are:
//! - **get**
//! - **put**
//! - **delete**
//! - **unzip**
//! - **mkcol**
//! - **mv**
//! - **list**
//!
//! Include **rustydav** as a dependency
//! ```toml
//! [dependencies]
//! rustydav = "0.1.3"
//! ```
//! Then add **rustydav** to your code
//! ```rust
//! extern crate rustydav;
//!
//! use rustydav::client;
//! use rustydav::prelude::*;
//! ```
//!
//! Create a client
//! ```ignore
//! let webdav_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>
//! ```rust
//! # let result: Result<&str, String> = Ok("test");
//! if result.is_ok() {
//! // the method completed with success
//! } else {
//! // somenting when wrong
//! }
//! ```
extern crate reqwest;