aboutsummaryrefslogtreecommitdiff
path: root/aero-proto/src/dav/node.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-04-24 17:35:00 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-04-24 17:35:00 +0200
commite1d7cf88afd9baab67d53823e95cb1b7f240802f (patch)
treee7ececccad85817d3f11700cf5cac4daf33d99e0 /aero-proto/src/dav/node.rs
parent52d767edae38cc0d3effd216152ff2dcf6d19239 (diff)
downloadaerogramme-e1d7cf88afd9baab67d53823e95cb1b7f240802f.tar.gz
aerogramme-e1d7cf88afd9baab67d53823e95cb1b7f240802f.zip
Working ICS GET/PUT/DELETE
Diffstat (limited to 'aero-proto/src/dav/node.rs')
-rw-r--r--aero-proto/src/dav/node.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/aero-proto/src/dav/node.rs b/aero-proto/src/dav/node.rs
index 1ed4b0a..d246280 100644
--- a/aero-proto/src/dav/node.rs
+++ b/aero-proto/src/dav/node.rs
@@ -39,8 +39,12 @@ pub(crate) trait DavNode: Send {
fn put<'a>(&'a self, policy: PutPolicy, stream: Content<'a>) -> BoxFuture<'a, std::result::Result<Etag, std::io::Error>>;
/// Content type of the element
fn content_type(&self) -> &str;
+ /// Get ETag
+ fn etag(&self) -> BoxFuture<Option<Etag>>;
/// Get content
fn content(&self) -> Content<'static>;
+ /// Delete
+ fn delete(&self) -> BoxFuture<std::result::Result<(), std::io::Error>>;
//@FIXME maybe add etag, maybe add a way to set content