Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit d9eb045

Browse files
Merge pull request #178 from solid/wac-allow
Document WAC-Allow headers
2 parents 2a93cc4 + 34d2fc2 commit d9eb045

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

api-rest.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,11 @@ Access-Control-Allow-Origin: *
382382
Access-Control-Expose-Headers: User, Triples, Location, Link, Vary, Last-Modified, Content-Length
383383
Allow: OPTIONS, HEAD, GET, PATCH, POST, PUT, DELETE
384384
```
385+
386+
### WAC-Allow headers
387+
Servers SHOULD send a WAC-Allow response header on HEAD and GET, with a value like:
388+
389+
```http
390+
WAC-Allow: user="read write append control",public="read"
391+
```
392+
In general, the format is `user="` + user-permissions = `",public="` + public-permissions + `"`. User-permissions and public-permissions should both be space-separated lists, containing a subset of ['read', 'write', 'append', 'control']. If 'write' is present then 'append' should also be present.

0 commit comments

Comments
 (0)