From 52621088222cc6655069c4d63a2ecba5b1555d18 Mon Sep 17 00:00:00 2001 From: Leandro Becker Date: Tue, 27 Aug 2024 12:16:00 -0300 Subject: MdePkg/Http11.h: Add HTTP header definitions. Added HTTP header definitions for the following headers: "Content-Range", "Last-Modified" and "If-Unmodified-Since" Signed-off-by: Leandro Gustavo Biss Becker --- MdePkg/Include/IndustryStandard/Http11.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/Http11.h b/MdePkg/Include/IndustryStandard/Http11.h index 2137ef1f1a..7636a9e925 100644 --- a/MdePkg/Include/IndustryStandard/Http11.h +++ b/MdePkg/Include/IndustryStandard/Http11.h @@ -248,6 +248,34 @@ /// #define HTTP_EXPECT_100_CONTINUE "100-continue" +/// +/// Content-Range Response Header +/// The Content-Range response HTTP header indicates where in a +/// full body message a partial message belongs. +/// +#define HTTP_HEADER_CONTENT_RANGE "Content-Range" + +/// +/// Last-Modified Response Header +/// The Last-Modified response HTTP header contains a date and time when +/// the origin server believes the resource was last modified. It is used +/// as a validator to determine if the resource is the same as the +/// previously stored one. Less accurate than an ETag header, +/// it is a fallback mechanism. Conditional requests containing +/// If-Modified-Since or If-Unmodified-Since headers make use of this field. +/// +#define HTTP_HEADER_LAST_MODIFIED "Last-Modified" + +/// +/// If Unmodified Since Request Header +/// Makes the request for the resource conditional: the server will send +/// the requested resource or accept it in the case of a POST or another +/// non-safe method only if the resource has not been modified after the +/// date specified by this HTTP header. If the resource has been modified +/// after the specified date, the response will be a 412 Precondition Failed error. +/// +#define HTTP_HEADER_IF_UNMODIFIED_SINCE "If-Unmodified-Since" + #pragma pack() #endif -- cgit v1.2.3