From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.9579.1603981374177551622 for ; Thu, 29 Oct 2020 07:22:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Rn4gJhM6; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=05714af0d0=abner.chang@hpe.com) Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09TEJmOl019541; Thu, 29 Oct 2020 14:22:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id; s=pps0720; bh=sMDBNRkbE1x+Z0gH07hDmZ6W8nyXKXgAYM8Gct4NssY=; b=Rn4gJhM6Q0Ek7WY+Qgmd1jBgdoZ6u7JKVbQvN1YltX64mxNgtPx3RP1gFiRvKOUdTT/p vAjI3zdQgI98PKfRdQOwC0pSm1ciqlm/dixvT7oPBpjX2B1FTyviK9w6SSItifGDRxRJ bMI3AJ5tyMZtQAlkvac8t3Kx4reFDf/0nk4OWs2Ms4MtYoUsqdVJQRaFJ+KE72fcUlny H/VX+FKncWPhXOdUaD+uGoYw4OpB32zVuaw7CYpNRTyOG8oanvc/w2EDHGoWnluZ9ciH vQpsGkhv47jT77OjtiqfIvy2unhx2oj7ZYTrxfAVNsdIBAYCSdAZbCnhCJkFYcUhJERD 3A== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 34exehyn09-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Oct 2020 14:22:53 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id A4B628D; Thu, 29 Oct 2020 14:22:52 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 4531B45; Thu, 29 Oct 2020 14:22:51 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Maciej Rabeda , Jiaxin Wu , Siyuan Fu , Nickle Wang Subject: [DxeHttpIoLib PATCH V4 0/3] Add Http IO Helper Library Date: Thu, 29 Oct 2020 21:37:30 +0800 Message-Id: <20201029133733.15961-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-10-29_06:2020-10-29,2020-10-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 mlxscore=0 phishscore=0 malwarescore=0 bulkscore=0 spamscore=0 suspectscore=1 mlxlogscore=999 impostorscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010290104 In v4: - Address the comments given by Maciej. - Add checking of "\r\n" notation on the Last-chunk and End-of-chunk. In v3: Address the comments given by Maciej. In v2: Revise HTTP Boot DXE to utilize HttpIoLib.   In order to leverage HTTP IO related functions implemented in HttpBootDxe for edk2 Redfish REST EX HTTP driver instance, we would like to pull out HTTP IO related functions from HttpBootDxe to a helper library under network package.   This set of patches is for the new library HttpIoLib. HttpBootDxe is also revised to utilize HttpIoLib. However we will need the owner of HttpBootDxe to verify the functionality of HTTP boot becuase I don't have the environment for that.   Signed-off-by: Abner Chang   Cc: Maciej Rabeda Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Nickle Wang Abner Chang (3): NetworkPkg/Library: Implementation of Http IO Helper Library NetworkPkg: Add Http IO Helper Library to NetworkPkg NetworkPkg/HttpBootDxe: Utilize HttpIoLib NetworkPkg/HttpBootDxe/HttpBootDxe.h | 3 +- NetworkPkg/HttpBootDxe/HttpBootDxe.inf | 2 + NetworkPkg/HttpBootDxe/HttpBootSupport.c | 431 +-------- NetworkPkg/HttpBootDxe/HttpBootSupport.h | 189 +--- NetworkPkg/Include/Library/HttpIoLib.h | 328 +++++++ .../Library/DxeHttpIoLib/DxeHttpIoLib.c | 847 ++++++++++++++++++ .../Library/DxeHttpIoLib/DxeHttpIoLib.inf | 43 + .../Library/DxeHttpIoLib/DxeHttpIoLib.uni | 13 + NetworkPkg/NetworkLibs.dsc.inc | 5 +- NetworkPkg/NetworkPkg.dec | 6 +- NetworkPkg/NetworkPkg.dsc | 1 + 11 files changed, 1247 insertions(+), 621 deletions(-) create mode 100644 NetworkPkg/Include/Library/HttpIoLib.h create mode 100644 NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.c create mode 100644 NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.inf create mode 100644 NetworkPkg/Library/DxeHttpIoLib/DxeHttpIoLib.uni -- 2.17.1