From 1b22e1582e28bee2d09d01a15c67243b054c599a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 19 Jun 2014 19:46:45 +0200 Subject: Add REST diagram for the part about conditional requests --- guide/rest_cond.svg | 1548 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1548 insertions(+) create mode 100644 guide/rest_cond.svg diff --git a/guide/rest_cond.svg b/guide/rest_cond.svg new file mode 100644 index 0000000..dedcec2 --- /dev/null +++ b/guide/rest_cond.svg @@ -0,0 +1,1548 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + some text + some text + has if-unmodified-since? + has if-none-match? + some text + ... + generate_etag + has if-modified-since? + has if-match? + generate_etag + last_modified + + true + match* + true + not modified* + true + no match* + + + + + false + false, orinvalid + modified* + false + + + + + + 412 precondition failed + + middlewares + + + + + + + + + + + + + + + + + no match* + + + + + + date is in the future? + + + + + + + + + + last_modified + + + + + + 304 not modified + + ... + false, orinvalid + match* + + method is GET or HEAD? + true + false + true + false + true + modified* + not modified* + + -- cgit v1.2.3