From de89c5a2d964293b17d7c1b36570a8fd04e9d046 Mon Sep 17 00:00:00 2001 From: Wyatt Herkamp Date: Thu, 8 Aug 2024 13:19:37 -0400 Subject: [PATCH] docs: Correct documentation for the last-modified http header. (#714) --- src/header/name.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/header/name.rs b/src/header/name.rs index 41320262..ac46a207 100644 --- a/src/header/name.rs +++ b/src/header/name.rs @@ -676,7 +676,10 @@ standard_headers! { /// document. (IfUnmodifiedSince, IF_UNMODIFIED_SINCE, b"if-unmodified-since"); - /// Content-Types that are acceptable for the response. + /// The Last-Modified header contains the date and time when the origin believes + /// the resource was last modified. + /// + /// The value is a valid Date/Time string defined in [RFC9910](https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.7) (LastModified, LAST_MODIFIED, b"last-modified"); /// Allows the server to point an interested client to another resource