docs(headers): Add more docs to conditional headers
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user