docs(headers): Add more docs to conditional headers

This commit is contained in:
Pyfisch
2015-04-28 17:38:46 +02:00
parent e993f4b544
commit 5a8cd31025
4 changed files with 17 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ header! {
#[doc="```plain"]
#[doc="If-Match = \"*\" / 1#entity-tag"]
#[doc="```"]
#[doc=""]
#[doc="# Example values"]
#[doc="* `\"xyzzy\"`"]
#[doc="* \"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\""]
(IfMatch, "If-Match") => {Any / (EntityTag)+}
test_if_match {

View File

@@ -14,6 +14,9 @@ header! {
#[doc="```plain"]
#[doc="If-Unmodified-Since = HTTP-date"]
#[doc="```"]
#[doc=""]
#[doc="# Example values"]
#[doc="* `Sat, 29 Oct 1994 19:43:31 GMT`"]
(IfModifiedSince, "If-Modified-Since") => [HttpDate]
test_if_modified_since {

View File

@@ -19,6 +19,13 @@ header! {
#[doc="```plain"]
#[doc="If-None-Match = \"*\" / 1#entity-tag"]
#[doc="```"]
#[doc=""]
#[doc="# Example values"]
#[doc="* `\"xyzzy\"`"]
#[doc="* `W/\"xyzzy\"`"]
#[doc="* `\"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\"`"]
#[doc="* `W/\"xyzzy\", W/\"r2d2xxxx\", W/\"c3piozzzz\"`"]
#[doc="* `*`"]
(IfNoneMatch, "If-None-Match") => {Any / (EntityTag)+}
test_if_none_match {

View File

@@ -14,6 +14,9 @@ header! {
#[doc="```plain"]
#[doc="If-Unmodified-Since = HTTP-date"]
#[doc="```"]
#[doc=""]
#[doc="# Example values"]
#[doc="* `Sat, 29 Oct 1994 19:43:31 GMT`"]
(IfUnmodifiedSince, "If-Unmodified-Since") => [HttpDate]
test_if_unmodified_since {