diff options
author | Leandro Becker <lbecker@positivo.com.br> | 2024-08-27 12:16:00 -0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-13 10:26:09 +0000 |
commit | 52621088222cc6655069c4d63a2ecba5b1555d18 (patch) | |
tree | 4d0dae573120c6e66b54f9afee347c9c3d64d742 /MdePkg | |
parent | 964c22b8ea3b1c497fed0547f29e8338be26040a (diff) | |
download | edk2-52621088222cc6655069c4d63a2ecba5b1555d18.tar.gz edk2-52621088222cc6655069c4d63a2ecba5b1555d18.tar.bz2 edk2-52621088222cc6655069c4d63a2ecba5b1555d18.zip |
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 <lbecker@positivo.com.br>
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/IndustryStandard/Http11.h | 28 |
1 files changed, 28 insertions, 0 deletions
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
|