]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
MdePkg/Http11.h: Add HTTP header definitions.
authorLeandro Becker <lbecker@positivo.com.br>
Tue, 27 Aug 2024 15:16:00 +0000 (12:16 -0300)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 13 Sep 2024 10:26:09 +0000 (10:26 +0000)
Added HTTP header definitions for the following headers:
"Content-Range", "Last-Modified" and "If-Unmodified-Since"

Signed-off-by: Leandro Gustavo Biss Becker <lbecker@positivo.com.br>
MdePkg/Include/IndustryStandard/Http11.h

index 2137ef1f1ac314650fb7dc6fff0f16d38218e25c..7636a9e92562266e14d8ccc2a7beecc35a61c83f 100644 (file)
 ///\r
 #define  HTTP_EXPECT_100_CONTINUE  "100-continue"\r
 \r
+///\r
+/// Content-Range Response Header\r
+/// The Content-Range response HTTP header indicates where in a\r
+/// full body message a partial message belongs.\r
+///\r
+#define HTTP_HEADER_CONTENT_RANGE  "Content-Range"\r
+\r
+///\r
+/// Last-Modified Response Header\r
+/// The Last-Modified response HTTP header contains a date and time when\r
+/// the origin server believes the resource was last modified. It is used\r
+/// as a validator to determine if the resource is the same as the\r
+/// previously stored one. Less accurate than an ETag header,\r
+/// it is a fallback mechanism. Conditional requests containing\r
+/// If-Modified-Since or If-Unmodified-Since headers make use of this field.\r
+///\r
+#define HTTP_HEADER_LAST_MODIFIED  "Last-Modified"\r
+\r
+///\r
+/// If Unmodified Since Request Header\r
+/// Makes the request for the resource conditional: the server will send\r
+/// the requested resource or accept it in the case of a POST or another\r
+/// non-safe method only if the resource has not been modified after the\r
+/// date specified by this HTTP header. If the resource has been modified\r
+/// after the specified date, the response will be a 412 Precondition Failed error.\r
+///\r
+#define HTTP_HEADER_IF_UNMODIFIED_SINCE  "If-Unmodified-Since"\r
+\r
 #pragma pack()\r
 \r
 #endif\r