draft-ietf-httpbis-digest-headers: Digests and Conditional Requests

Hi there,

I just noticed that RFC 4918 (WebDAV) and RFC 6920 (Naming Things with
Hashes) give us the machinery to make request conditional on hashes.

Example (based on
<https://greenbytes.de/tech/webdav/draft-ietf-httpbis-digest-headers-02.html#server-returns-full-representation-data>)

   PUT /x HTTP/1.1
   Host: foo
   If: <ni:///sha-256;X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=>
   Content-Type: application/json

   {"hello": "world2"}

All that would be needed is s statement that servers that support both
the Digest field and the If header field SHOULD consider the ni: URIs
built from the hashes as "state tokens" as defined in RFC 4918, Section 3.

Best regards, Julian

Received on Tuesday, 30 June 2020 09:22:58 UTC