From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 02B8CAC0FB1 for ; Thu, 26 Oct 2023 06:10:01 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=iPd/CgPkB5GixXnVInjs2YuB8sWukluyqm0wpiTj/K4=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1698300600; v=1; b=hLk+pYjcv7fqijOyxHSxdnU2Qk1bH4FxgTHjdxn5NzejF9Jb6d7aQVypfgOE5RXno7ljLsDW eGIhNh7oH6jdW/QtozNa6I1BRQW8EGqjj+k0JnJ2gQEkr8Wc8YQyO5id6+yUJDzoDJI76BXZykr KKDLgta0ohiCD9CYkp2Kt4bU= X-Received: by 127.0.0.2 with SMTP id YvO6YY7687511xrYbq7bC48Y; Wed, 25 Oct 2023 23:10:00 -0700 X-Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.42]) by mx.groups.io with SMTP id smtpd.web10.193986.1698300599780100551 for ; Wed, 25 Oct 2023 23:10:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GY7euyFuRR2B0OAITH6TGsR46MMRb9hGETGatk0TbVfVTiS2FyrRKQVCcL6ajxE40LOR67e18Lq3otQq8hk1E8BX2b+7MrUXW2XEFtQio9tV4uD1RGBjC+xDroIflKgnhwUTJhOU/GCpEQVRtxcBkJ1PebrvZbpW9l53dx64VR2rOdrcOLC0WcKB/CxhFJDlizX1rPz3PAcHAA47BA7nZBTfsucxQpmYThFZ9Fgzs9Zrppa8XPU17CD3UQzBwQoQmcXnjFfwP+qGHe9UHIk4J52HvZCcCSSoW3EXPeeb0yG06sUGM3XgO1lqZR2R+igmohpOdM63xHO9/UrFin6JAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/ldHiYj3YWsRzmXBisUQVyD6PmXuciXZDkb7ucdY5OU=; b=Xsvfs3ITGM7ySQGj6YvxP7cWvFvpa8Gl7H3clC9/LBaTI216YQ247QP21esGHWfSNWPhlvphQKOXWEryB52VsPOAOopTIvch2+CLIzVH11KoeINVdF0zY/sjyX7Au3BoQKURIPBhxiQGXcMydZGJg/vPaCBFb26RTSqPViaX8PXjlSXCcA/UpsNRhd54MYA8IN+0A5Y4aSpBTHjIBUERuomBEW9Mzn5JQj8+dZijCJNLkHDJzQxTWtfIKBDntiVRobuMQ2dSuq56Vui57XGoXxODZLWeqMFnMPP9T0zu0HXNeUcOP0xYENPybuIb4cAEMoIF+TsutgvCvqIfy8St9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by SA1PR12MB7245.namprd12.prod.outlook.com (2603:10b6:806:2bf::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.29; Thu, 26 Oct 2023 06:09:57 +0000 X-Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::e670:e45f:fa32:2420]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::e670:e45f:fa32:2420%6]) with mapi id 15.20.6933.019; Thu, 26 Oct 2023 06:09:57 +0000 From: "Chang, Abner via groups.io" To: Nickle Wang , "devel@edk2.groups.io" CC: Igor Kulchytskyy , Nick Ramirez Subject: Re: [edk2-devel] [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller Thread-Topic: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller Thread-Index: AQHaBlWyEJtthRqT+UuBsO9C4/wzpLBbmWhQ Date: Thu, 26 Oct 2023 06:09:57 +0000 Message-ID: References: <20231024083944.16275-1-nicklew@nvidia.com> In-Reply-To: <20231024083944.16275-1-nicklew@nvidia.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=cfbc3f75-dde8-4c77-a5a6-b619356f2f83;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-10-26T06:09:54Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|SA1PR12MB7245:EE_ x-ms-office365-filtering-correlation-id: f0ba7af2-b9d4-4f5f-3715-08dbd5ea2e05 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: P37YHWgf0CBd+5A2Q3OIB4HhVDxTsMLPCFZxipa7Ubz+Opt5oPX/eY1BWi0wFcLkaKjDmYym+RCfpNq3oroOucxij/Rr44Ix/ZHDpEMVN6M8JD3J1y1mG0SkiL7OUokYbBaBfA3U0NiLT1i//D6uGhq3XGe53XOt2oIO3egyho+AUNJb8VPwoNHs9d6zq3EMZ74itRp9eFQzD55OHqgPy77cgqxYyrvFQFII05MgdT4e50VOmCn7iDb00pzTi9WXIPaXJ9lEJ/FVvg1ZWVQjcYGIwP2McbyQZwdb1Jd8xLu/rN6JRrPV9zlGRcAT4gCbXoBogdxIN0Vb+9offcYpcI7uDOY8aRqkCmd0k541q1UOGbUfOrrfVUMWVDCxSnkztJ732zlc0kqiBI4Ke8m4qHSLN5mgRbmF8EJj/J98lWIpiiQ499+qWez/yN9s/u4vXSREDUrh5+CSySsPLJ+XhqPGKFGWO700qn5toTgF1FqYiWtfAMgwXgTHt83c78sC4GfV9E6QdGX1YCfZeP9inx+w4SqBXnJ/wdRcY5DajNop8rmtP4th0qxpzmbuDmc70eJZV0ai4LCXeuGzBQHe76CbM0C7FY/VG1SpKwi02MM= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tMjiAI87oy8k2ewE6NgC5pHp1cFZfPGlxUXYoSBH/7GXJDKir+fS3nXPu5q3?= =?us-ascii?Q?/jZu9xC9j2rfv4jcqMnOOePN9y4hQbUR0biu5kRo0/U7QfzMXgMdLfz5IOzC?= =?us-ascii?Q?towMN7VYju0ewMzBg+eJbITOkMbH3HBub2KdIZ9HI3bEPSyGqYuW5NJO4MHr?= =?us-ascii?Q?DWgJAAYBJT0/R+iW1Cnk8W2/cjW+nqOMIUVD0V5HH+XJiJw0G27eg/FrJ344?= =?us-ascii?Q?W4ktdBBYAwUNrRO+ZleFznj7LpaUo93OJCujllHK3sUOVCpq1iIeZzQZ3zbG?= =?us-ascii?Q?MwuZiTFy+3XH9qRNMz4u43YcFfueE2/dGHb7+1E1ni046MWiRlaQYz32oYtu?= =?us-ascii?Q?8171zOnshwXAOAl4d36njb4WxCsbm3dOhkMtbc3rDuJfbzoca94DNT//LFNG?= =?us-ascii?Q?l2qJsp0FLkTu/iLz/dIsrtdzMqq+oY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uH0UVloovphbKFh/RSWn62DUna68PXPOiKPqlX/hRe2ukiWtGk?= =?us-ascii?Q?oKwgIce2NudHeXSPBuoHDelkky5Ho+yjP7sJ3OslvqH66svGjTPzJpVMmotH?= =?us-ascii?Q?vtmgR5xITbLNteXAUmEw0OYIahtOQNdk0kS0PZRwg/e9TNLGWuUhSItNxPmA?= =?us-ascii?Q?NIweBATCn3C2TPz3NLt2bAHX8vajIl2RG/meMbYKnl8RW67QM24diFyIRiYY?= =?us-ascii?Q?CJ/2lXkGZw41quLdJNFFudGBQeWwzpg3wyTxYcf0?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0ba7af2-b9d4-4f5f-3715-08dbd5ea2e05 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2023 06:09:57.3861 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: iFmpwBjgar4wsBflc7DbbQIKZoYsvKr81EkypIw9d58PBiB9KhSdJEpYk9je3NGcA7vzVX8sIXFL2KL+viaa6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7245 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: yq6eA5TQor2TRuEsNnr6bktJx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=hLk+pYjc; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io [AMD Official Use Only - General] Reviewed-by: Abner Chang > -----Original Message----- > From: Nickle Wang > Sent: Tuesday, October 24, 2023 4:40 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > ; Nick Ramirez > Subject: [PATCH 3/3] RedfishPkg/RedfishLib: return HTTP headers to caller > > Caution: This message originated from an External Source. Use proper caut= ion > when opening attachments, clicking links, or responding. > > > Call Ex interface to get HTTP headers and return to caller. > > Signed-off-by: Nickle Wang > Cc: Abner Chang > Cc: Igor Kulchytskyy > Cc: Nick Ramirez > --- > RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > index f4045044829a..5e06d516ba84 100644 > --- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > +++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c > @@ -356,7 +356,7 @@ RedfishGetByUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue =3D getUriFromService (RedfishService, Uri, &RedR= esponse- > >StatusCode); > + JsonValue =3D getUriFromServiceEx (RedfishService, Uri, &Re= dResponse- > >Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode); > RedResponse->Payload =3D createRedfishPayload (JsonValue, RedfishServi= ce); > > // > @@ -498,10 +498,12 @@ RedfishPatchToUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue =3D (EDKII_JSON_VALUE)patchUriFromService ( > + JsonValue =3D (EDKII_JSON_VALUE)patchUriFromServiceEx ( > RedfishService, > Uri, > Content, > + &(RedResponse->Headers), > + &(RedResponse->HeaderCount), > &(RedResponse->StatusCode) > ); > > @@ -661,12 +663,14 @@ RedfishPostToUri ( > > ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE)); > > - JsonValue =3D (EDKII_JSON_VALUE)postUriFromService ( > + JsonValue =3D (EDKII_JSON_VALUE)postUriFromServiceEx ( > RedfishService, > Uri, > Content, > ContentSize, > ContentType, > + &(RedResponse->Headers), > + &(RedResponse->HeaderCount), > &(RedResponse->StatusCode) > ); > > -- > 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#110076): https://edk2.groups.io/g/devel/message/110076 Mute This Topic: https://groups.io/mt/102154017/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-