Skip to main content

Module requests

Module requests 

Source
Expand description

Request/response pattern for WebDAV operations.

Idiomatic API to the method-based approach, using a request/response pattern.

§Example

use libdav::dav::GetEtag;
let response = caldav.request(
    GetEtag::new("/calendar/event.ics")
).await?;
println!("Etag: {}", response.etag);

Structs§

PreparedRequest
A prepared HTTP request ready to be sent to a WebDAV server.

Enums§

ParseResponseError
Error when parsing a WebDAV responses.

Traits§

DavRequest
A WebDAV request that can be prepared and executed.

Functions§

xml_content_type_header
Returns the HTTP header tuple for XML content with UTF-8 encoding.