Skip to content

Commit 03f2f38

Browse files
committed
Add OPTIONS response
1 parent 3d2aad8 commit 03f2f38

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

content.mkd

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,27 @@ WebDAV-Push
119119

120120
# Service Detection
121121

122-
This section describes how a client can detect
122+
A server that supports WebDAV-Push MUST include "webdav-push" in the `DAV` header of an `OPTIONS` response for any resource that supports WebDAV-Push. The "webdav-push" value MUST indicate that all MUST level requirements of this document are met.
123123

124-
- whether a collection supports WebDAV-Push,
125-
- which push services are supported (may contain service-specific information).
124+
Example:
125+
126+
~~~
127+
OPTIONS /calendars/
128+
Host: caldav.example.com
129+
130+
HTTP/1.1 200 OK
131+
Allow: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, COPY, MOVE
132+
Allow: PROPFIND, PROPPATCH, LOCK, UNLOCK, REPORT, ACL
133+
DAV: 1, 2, access-control, calendar-access, webdav-push
134+
Content-Length: 0
135+
~~~
136+
137+
Here, the OPTIONS method returns "webdav-push" in the DAV response header to indicate that the resource supports the properties and operations defined in this document.
126138

127139

128140
## Collection Properties {#collection-properties}
129141

130-
To provide information about WebDAV-Push support, new properties are defined. A WebDAV-Push server is REQUIRED to provide the `transports`, `topic` and `supported-triggers` properties for collections that support WebDAV-Push.
142+
To provide information about WebDAV-Push support, new properties are defined. A WebDAV-Push server MUST provide the `transports`, `topic` and `supported-triggers` properties for collections that support WebDAV-Push.
131143

132144
The `transports` element lists available push transports. Although the property is defined on every collection, its value is usually the same for every collection on the server. Within the scope of this document, the only supported transport is `web-push` (see {{transport-web-push}}).
133145

0 commit comments

Comments
 (0)