diff options
| author | François Freitag <mail@franek.fr> | 2018-11-15 19:54:28 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-15 13:54:28 -0500 |
| commit | 9b15ff08ba638a7070fb51c1ab4c01e245556ae8 (patch) | |
| tree | cdeb57ad0b7d68de050dcd3d4eed1c755513f432 /docs/topics/conditional-view-processing.txt | |
| parent | cf915cb5138e0b245393429e141cb741a390a095 (diff) | |
Used auto-numbered lists in documentation.
Diffstat (limited to 'docs/topics/conditional-view-processing.txt')
| -rw-r--r-- | docs/topics/conditional-view-processing.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/conditional-view-processing.txt b/docs/topics/conditional-view-processing.txt index 617f3febbf..f5bd88acaf 100644 --- a/docs/topics/conditional-view-processing.txt +++ b/docs/topics/conditional-view-processing.txt @@ -176,16 +176,16 @@ trying to change has been altered in the meantime. For example, consider the following exchange between the client and server: -1. Client requests ``/foo/``. -2. Server responds with some content with an ETag of ``"abcd1234"``. -3. Client sends an HTTP ``PUT`` request to ``/foo/`` to update the +#. Client requests ``/foo/``. +#. Server responds with some content with an ETag of ``"abcd1234"``. +#. Client sends an HTTP ``PUT`` request to ``/foo/`` to update the resource. It also sends an ``If-Match: "abcd1234"`` header to specify the version it is trying to update. -4. Server checks to see if the resource has changed, by computing the ETag +#. Server checks to see if the resource has changed, by computing the ETag the same way it does for a ``GET`` request (using the same function). If the resource *has* changed, it will return a 412 status code, meaning "precondition failed". -5. Client sends a ``GET`` request to ``/foo/``, after receiving a 412 +#. Client sends a ``GET`` request to ``/foo/``, after receiving a 412 response, to retrieve an updated version of the content before updating it. |
