Skip to content

Commit

Permalink
query: new Examples Section - etag and if-none-match
Browse files Browse the repository at this point in the history
  • Loading branch information
reschke committed Feb 17, 2025
1 parent fcc6eb2 commit 07a76d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions draft-ietf-httpbis-safe-method-w-body.xml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Last-Modified: Sun, 17 November 2024, 16:12:01 GMT
ETag: "42-1"
Date: Sun, 17 November 2024, 16:13:17 GMT

[
Expand All @@ -714,6 +715,15 @@ Date: Sun, 17 November 2024, 16:13:17 GMT
"email": "camille.dubois@example.net" }
]
</artwork>
<t>
Assuming no change in the query result, a subsequent conditional GET request with
</t>
<artwork type="http-message">
If-Non-Match: "42-1"
</artwork>
<t>
would result in a 304 response ("Not Modified", <xref target="HTTP" section="15.4.5"/>).
</t>
<t>
Note that there's no guarantee that the server will implement this resource
indefinitely, so, after an error response, the client would need to redo
Expand Down

0 comments on commit 07a76d4

Please sign in to comment.