]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Add Http IO Helper Library to NetworkPkg
authorAbner Chang <abner.chang@hpe.com>
Tue, 3 Nov 2020 05:26:50 +0000 (13:26 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 4 Dec 2020 11:45:07 +0000 (11:45 +0000)
This library provides HTTP IO helper functions.

Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
NetworkPkg/NetworkLibs.dsc.inc
NetworkPkg/NetworkPkg.dec
NetworkPkg/NetworkPkg.dsc

index 4b99f48085fa308f169fd9847201e4459ae86e7b..7cfc1a151a394d34da8eb4b0675e2ddf4e5cb84d 100644 (file)
@@ -6,6 +6,7 @@
 # of EDKII network library classes.\r
 #\r
 # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>\r
 #\r
 #    SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
@@ -16,5 +17,7 @@
   IpIoLib|NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.inf\r
   UdpIoLib|NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf\r
   TcpIoLib|NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf\r
-  # HttpLib is used for Http Boot\r
+  # HttpLib and HttpIoLib are used for Http Boot and other\r
+  # HTTP applications.\r
   HttpLib|NetworkPkg/Library/DxeHttpLib/DxeHttpLib.inf\r
+  HttpIoLib|NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.inf\r
index 66e500cbeaf7b01266843db09c7a87c84f91a51e..2d0d7fd2dce2d724fd1d8ded4ec5ebe1d77187d7 100644 (file)
@@ -4,7 +4,7 @@
 # This package provides network modules that conform to UEFI 2.4 specification.\r
 #\r
 # Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
-# (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP<BR>\r
+# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>\r
 #\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
   #   This library is only intended to be used by UEFI network stack modules.\r
   HttpLib|Include/Library/HttpLib.h\r
 \r
+  ##  @libraryclass  Http IO helper routines for HTTP transfer.\r
+  #   This library is only intended to be used by UEFI network stack modules.\r
+  HttpIoLib|Include/Library/HttpIoLib.h\r
+\r
   ##  @libraryclass  Library for Deferred Procedure Calls.\r
   DpcLib|Include/Library/DpcLib.h\r
 \r
   # @Prompt Max attempt number.\r
   gEfiNetworkPkgTokenSpaceGuid.PcdMaxIScsiAttemptNumber|0x08|UINT8|0x0000000D\r
 \r
+  ## The maximum size of total HTTP chunk transfer.\r
+  # @Prompt Max size of total HTTP chunk transfer. the default value is 12MB.\r
+  gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer|0x0C00000|UINT32|0x0000000E\r
+\r
 [PcdsFixedAtBuild, PcdsPatchableInModule]\r
   ## Indicates whether HTTP connections (i.e., unsecured) are permitted or not.\r
   # TRUE  - HTTP connections are allowed. Both the "https://" and "http://" URI schemes are permitted.\r
index b1250c3b353681d487abd5c99f89ebcc491a688d..531da841e96094feeb3366301bb95fd295c05395 100644 (file)
   NetworkPkg/Application/VConfig/VConfig.inf\r
   NetworkPkg/Library/DxeDpcLib/DxeDpcLib.inf\r
   NetworkPkg/Library/DxeHttpLib/DxeHttpLib.inf\r
+  NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.inf\r
   NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.inf\r
   NetworkPkg/Library/DxeNetLib/DxeNetLib.inf\r
   NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf\r