Struct hyperdav::webdav::client::Client [] [src]

pub struct Client {
    // some fields omitted
}

Methods

impl Client
[src]

fn new() -> Self

fn get<'a, U: IntoUrl + Clone>(&'a self, url: U) -> Result<ResponseError>

Get a file

fn put<'a, U: IntoUrl + Clone>(&'a self, body: &'a mut Read, url: U) -> Result<()Error>

Put a file

fn mkdir<'a, U: IntoUrl + Clone>(&'a self, url: U) -> Result<()Error>

Create a directory

fn mv<'a, U: IntoUrl + Clone>(&'a self, from: U, to: U) -> Result<()Error>

Rename/move a directory or file

fn ls<'a, U: IntoUrl + Clone>(&'a self, url: U) -> Result<Vec<PropfindResponse>, Error>

List files in a directory

fn request<'a, U: IntoUrl + Clone>(&'a self, method: Method, url: U) -> RequestBuilder<'a>