You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -202,7 +204,7 @@ How to subscribe to collections on the WebDAV server. Required information:
202
204
- Expiration? how long by default, min/max (24 h), server decides (and can impose limits)
203
205
- (End-to-end-encryption? Or should it be defined per transport?)
204
206
205
-
TODO By now, only updates in direct members (equals `Depth: 1`) are sent. Maybe it could be specified that servers can send one notification per path segment? Implications?
207
+
> **TODO:** By now, only updates in direct members (equals `Depth: 1`) are sent. Maybe it could be specified that servers can send one notification per path segment? Implications?
206
208
207
209
To subscribe to a collection, the client sends a POST request with
208
210
`Content-Type: application/xml` to the collection it wants to subscribe. The root XML element of the XML body is `push-register` in the WebDAV-Push name space (`DAV:Push`) and can be used to distinguish between a WebDAV-Push and other requests.
@@ -215,6 +217,8 @@ Allowed response codes:
215
217
* 204 if the subscription was registered
216
218
* other response code with usual HTTP/WebDAV semantics (if possible, with `DAV:error` XML body)
217
219
220
+
> **TODO**: Always return expiration
221
+
218
222
In any case, when a subscription is registered the first time, the server creates a URL that identifies that registration (_registration URL_). That URL is sent in the `Location` header and can be used to remove the subscription.
219
223
220
224
Sample request for Web Push:
@@ -357,7 +361,7 @@ Expiration ...
357
361
358
362
### Removal of invalid subscriptions
359
363
360
-
A WebDAV-Push server _must_ ensure that invalid subscriptions (encountered when trying to sending a push notification) are removed.
364
+
A WebDAV-Push server _must_ ensure that invalid subscriptions (encountered when trying to sending a push notification) are removed at some time.
361
365
362
366
An invalid subscription is a subscription that push notifications can't be delivered to. Usually the push service returns an HTTP error code like 404 when it receives a notification for an invalid subscription. There may also be other conditions that render a subscription invalid, like a non-resolvable hostname or an encryption handshake error.
363
367
@@ -420,7 +424,7 @@ applicable.
420
424
421
425
A WebDAV-Push server should use the collection topic as `Topic` header in push messages to replace previous notifications for the same collection.
422
426
423
-
> **NOTE**: [UnifiedPush](https://unifiedpush.org/) (UP) is a set of specification documents which are intentionally designed as a 100% compatible subset of Web Push, together with a software that can be used to implement these documents. From a WebDAV-Push server perspective, UP endpoints can be seen as Web Push resources.
427
+
> **NOTE**: [UnifiedPush](https://unifiedpush.org/) (UP) is a specification which is intentionally designed as a 100% compatible subset of Web Push, together with a software that can be used to implement these documents. From a WebDAV-Push server perspective, UP endpoints can be seen as Web Push resources.
424
428
425
429

0 commit comments