summaryrefslogtreecommitdiffstats
path: root/NetworkPkg
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@hpe.com>2020-11-03 13:26:50 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-04 11:45:07 +0000
commit375e9b190e37041129b35a1c667993ea145e5b7e (patch)
treed2ff1573b369d5b0c9de0e74e60a88a9f5639bc9 /NetworkPkg
parent71a404154105fac01b7c45a46bfa873fa5457114 (diff)
downloadedk2-375e9b190e37041129b35a1c667993ea145e5b7e.tar.gz
edk2-375e9b190e37041129b35a1c667993ea145e5b7e.tar.bz2
edk2-375e9b190e37041129b35a1c667993ea145e5b7e.zip
NetworkPkg: Add Http IO Helper Library to NetworkPkg
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>
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/NetworkLibs.dsc.inc5
-rw-r--r--NetworkPkg/NetworkPkg.dec10
-rw-r--r--NetworkPkg/NetworkPkg.dsc1
3 files changed, 14 insertions, 2 deletions
diff --git a/NetworkPkg/NetworkLibs.dsc.inc b/NetworkPkg/NetworkLibs.dsc.inc
index 4b99f48085..7cfc1a151a 100644
--- a/NetworkPkg/NetworkLibs.dsc.inc
+++ b/NetworkPkg/NetworkLibs.dsc.inc
@@ -6,6 +6,7 @@
# of EDKII network library classes.
#
# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+# (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -16,5 +17,7 @@
IpIoLib|NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.inf
UdpIoLib|NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
TcpIoLib|NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
- # HttpLib is used for Http Boot
+ # HttpLib and HttpIoLib are used for Http Boot and other
+ # HTTP applications.
HttpLib|NetworkPkg/Library/DxeHttpLib/DxeHttpLib.inf
+ HttpIoLib|NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.inf
diff --git a/NetworkPkg/NetworkPkg.dec b/NetworkPkg/NetworkPkg.dec
index 66e500cbea..2d0d7fd2dc 100644
--- a/NetworkPkg/NetworkPkg.dec
+++ b/NetworkPkg/NetworkPkg.dec
@@ -4,7 +4,7 @@
# This package provides network modules that conform to UEFI 2.4 specification.
#
# Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
-# (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP<BR>
+# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -41,6 +41,10 @@
# This library is only intended to be used by UEFI network stack modules.
HttpLib|Include/Library/HttpLib.h
+ ## @libraryclass Http IO helper routines for HTTP transfer.
+ # This library is only intended to be used by UEFI network stack modules.
+ HttpIoLib|Include/Library/HttpIoLib.h
+
## @libraryclass Library for Deferred Procedure Calls.
DpcLib|Include/Library/DpcLib.h
@@ -89,6 +93,10 @@
# @Prompt Max attempt number.
gEfiNetworkPkgTokenSpaceGuid.PcdMaxIScsiAttemptNumber|0x08|UINT8|0x0000000D
+ ## The maximum size of total HTTP chunk transfer.
+ # @Prompt Max size of total HTTP chunk transfer. the default value is 12MB.
+ gEfiNetworkPkgTokenSpaceGuid.PcdMaxHttpChunkTransfer|0x0C00000|UINT32|0x0000000E
+
[PcdsFixedAtBuild, PcdsPatchableInModule]
## Indicates whether HTTP connections (i.e., unsecured) are permitted or not.
# TRUE - HTTP connections are allowed. Both the "https://" and "http://" URI schemes are permitted.
diff --git a/NetworkPkg/NetworkPkg.dsc b/NetworkPkg/NetworkPkg.dsc
index b1250c3b35..531da841e9 100644
--- a/NetworkPkg/NetworkPkg.dsc
+++ b/NetworkPkg/NetworkPkg.dsc
@@ -109,6 +109,7 @@
NetworkPkg/Application/VConfig/VConfig.inf
NetworkPkg/Library/DxeDpcLib/DxeDpcLib.inf
NetworkPkg/Library/DxeHttpLib/DxeHttpLib.inf
+ NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.inf
NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.inf
NetworkPkg/Library/DxeNetLib/DxeNetLib.inf
NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf