diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-04-23 15:20:29 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-04-23 15:20:29 +0200 |
commit | 50ce8621c2eaf91c46be0a2a9c2b82b19e66880b (patch) | |
tree | a2a90b18d23b11e92818a0bdced912e33b1d576d /aero-proto/src/dav/node.rs | |
parent | 4594e068dbba3d3d704728449fc6ccaaadaa82f1 (diff) | |
download | aerogramme-50ce8621c2eaf91c46be0a2a9c2b82b19e66880b.tar.gz aerogramme-50ce8621c2eaf91c46be0a2a9c2b82b19e66880b.zip |
GET implementation
Diffstat (limited to 'aero-proto/src/dav/node.rs')
-rw-r--r-- | aero-proto/src/dav/node.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/aero-proto/src/dav/node.rs b/aero-proto/src/dav/node.rs index 96586ad..e2835e9 100644 --- a/aero-proto/src/dav/node.rs +++ b/aero-proto/src/dav/node.rs @@ -5,9 +5,10 @@ use hyper::body::Bytes; use aero_dav::types as dav; use aero_dav::realization::All; -use aero_collections::{user::User, davdag::Etag}; +use aero_collections::davdag::Etag; + +use super::controller::ArcUser; -type ArcUser = std::sync::Arc<User>; pub(crate) type Content<'a> = BoxStream<'a, std::result::Result<Bytes, std::io::Error>>; pub(crate) enum PutPolicy { @@ -34,7 +35,7 @@ pub(crate) trait DavNode: Send { /// Put an element (create or update) fn put<'a>(&'a self, policy: PutPolicy, stream: Content<'a>) -> BoxFuture<'a, Result<Etag>>; /// Get content - //fn content(&self) -> TryStream; + fn content<'a>(&'a self) -> BoxFuture<'a, Content<'static>>; //@FIXME maybe add etag, maybe add a way to set content |