<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/NetworkPkg/Library/DxeHttpLib, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>NetworkPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T19:03:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=58de02af29a72b58ddc68893ecaf0927682e4164'/>
<id>urn:sha1:58de02af29a72b58ddc68893ecaf0927682e4164</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: fix various typos</title>
<updated>2025-11-21T21:49:59+00:00</updated>
<author>
<name>Philipp Schuster</name>
<email>philipp.schuster@cyberus-technology.de</email>
</author>
<published>2025-11-04T07:25:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d5df66e297ae3a3377485a024f8a60256577de5d'/>
<id>urn:sha1:d5df66e297ae3a3377485a024f8a60256577de5d</id>
<content type='text'>
Signed-off-by: Philipp Schuster &lt;philipp.schuster@cyberus-technology.de&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: DxeHttpLib: Use HTTP error 429</title>
<updated>2024-09-02T21:17:25+00:00</updated>
<author>
<name>Ken Lautner</name>
<email>kenlautner3@gmail.com</email>
</author>
<published>2024-08-28T18:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=82c5cacd134d64ea0d0f4dabdbbde38017acb70d'/>
<id>urn:sha1:82c5cacd134d64ea0d0f4dabdbbde38017acb70d</id>
<content type='text'>
Include a mapping for HTTP error 429 to return the correct
status code. Additionally include a link to the official
HTTP status codes in the HttpMappingToStatusCode function header.

Signed-off-by: Kenneth Lautner &lt;kenlautner3@gmail.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/DxeHttpLib: Support HTTP CONNECT message in Tx path.</title>
<updated>2024-08-07T23:01:48+00:00</updated>
<author>
<name>Saloni Kasbekar</name>
<email>saloni.kasbekar@intel.com</email>
</author>
<published>2024-07-23T20:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=ab6ad2fbdbaad1eb3a766973d6f587685d784d48'/>
<id>urn:sha1:ab6ad2fbdbaad1eb3a766973d6f587685d784d48</id>
<content type='text'>
Add HTTP CONNECT message support in HttpGenRequestMessage()

Signed-off-by: Saloni Kasbekar &lt;saloni.kasbekar@intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Fix conditionally uninitialized variables</title>
<updated>2023-04-03T15:29:08+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2022-11-08T20:30:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3fab32d41dc7f45db498800328db9f1fb6699075'/>
<id>urn:sha1:3fab32d41dc7f45db498800328db9f1fb6699075</id>
<content type='text'>
Fixes CodeQL alerts for CWE-457:
https://cwe.mitre.org/data/definitions/457.html

Cc: Erich McMillan &lt;emcmillan@microsoft.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Michael Kubacki &lt;mikuback@linux.microsoft.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Co-authored-by: Erich McMillan &lt;emcmillan@microsoft.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Oliver Smith-Denny &lt;osd@smith-denny.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:54:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d1050b9dff1cace252aff86630bfdb59dff5f507'/>
<id>urn:sha1:d1050b9dff1cace252aff86630bfdb59dff5f507</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the NetworkPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/DxeHttpLib: Migrate HTTP header manipulation APIs</title>
<updated>2021-01-14T14:54:12+00:00</updated>
<author>
<name>Abner Chang</name>
<email>abner.chang@hpe.com</email>
</author>
<published>2021-01-07T06:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=40c4cd54213b78ef0daee2f4b186150d7ef63bb4'/>
<id>urn:sha1:40c4cd54213b78ef0daee2f4b186150d7ef63bb4</id>
<content type='text'>
Move HTTP header manipulation functions to DxeHttpLib from
HttpBootSupport.c. These general functions are used by both
Http BOOT and RedfishLib (patches will be sent later).

Signed-off-by: Abner Chang &lt;abner.chang@hpe.com&gt;

Cc: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Fan Wang &lt;fan.wang@intel.com&gt;
Cc: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Cc: Nickle Wang &lt;nickle.wang@hpe.com&gt;
Cc: Peter O'Hanley &lt;peter.ohanley@hpe.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;</content>
</entry>
<entry>
<title>NetworkPkg: Fix possible infinite loop in HTTP msg body parser</title>
<updated>2020-10-09T10:40:33+00:00</updated>
<author>
<name>Vladimir Olovyannikov via groups.io</name>
<email>vladimir.olovyannikov=broadcom.com@groups.io</email>
</author>
<published>2020-08-28T18:17:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=70c2f10fde5b67b0d7d62ba7ea3271fc514ebcc4'/>
<id>urn:sha1:70c2f10fde5b67b0d7d62ba7ea3271fc514ebcc4</id>
<content type='text'>
When an HTTP server sends a non-chunked body data with no
Content-Length header, the HttpParserMessageBody in DxeHttpLib
gets confused and never sets the Char pointer beyond the body start.
This causes "for" loop to never break because the condition of
"Char &gt;= Body + BodyLength" is never satisfied.
Use BodyLength as the ContentLength for the parser when
ContentLength is absent in HTTP response headers.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2941

Signed-off-by: Vladimir Olovyannikov &lt;vladimir.olovyannikov@broadcom.com&gt;
Cc: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/Library: Fix various typos</title>
<updated>2020-02-10T22:30:07+00:00</updated>
<author>
<name>Antoine Coeur</name>
<email>coeur@gmx.fr</email>
</author>
<published>2020-02-07T01:07:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6deb4baa1f778550df7178d40da37e59e3512f5e'/>
<id>urn:sha1:6deb4baa1f778550df7178d40da37e59e3512f5e</id>
<content type='text'>
Fix various typos in comments and documentation.

Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Maciej Rabeda &lt;maciej.rabeda@intel.com&gt;
Signed-off-by: Antoine Coeur &lt;coeur@gmx.fr&gt;
Reviewed-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@intel.com&gt;
Signed-off-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Message-Id: &lt;20200207010831.9046-43-philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Remove unnecessary MdeModulePkg/MdeModulePkg.dec dependency in INF</title>
<updated>2019-10-08T01:20:34+00:00</updated>
<author>
<name>Liming Gao</name>
<email>liming.gao@intel.com</email>
</author>
<published>2019-09-17T02:58:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0b73027eb152a509fb5cd5fd1118ad1985ed886e'/>
<id>urn:sha1:0b73027eb152a509fb5cd5fd1118ad1985ed886e</id>
<content type='text'>
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Signed-off-by: Liming Gao &lt;liming.gao@intel.com&gt;
Reviewed-by: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
</content>
</entry>
</feed>
