RedfishPkg/RedfishLib: return HTTP headers to caller

Call Ex interface to get HTTP headers and return to caller.

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
This commit is contained in:
Nickle Wang 2023-10-24 14:51:24 +08:00 committed by mergify[bot]
parent 1cbdd6e9ff
commit 8765f3eb42
1 changed files with 7 additions and 3 deletions

View File

@ -356,7 +356,7 @@ RedfishGetByUri (
ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE));
JsonValue = getUriFromService (RedfishService, Uri, &RedResponse->StatusCode);
JsonValue = getUriFromServiceEx (RedfishService, Uri, &RedResponse->Headers, &RedResponse->HeaderCount, &RedResponse->StatusCode);
RedResponse->Payload = createRedfishPayload (JsonValue, RedfishService);
//
@ -498,10 +498,12 @@ RedfishPatchToUri (
ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE));
JsonValue = (EDKII_JSON_VALUE)patchUriFromService (
JsonValue = (EDKII_JSON_VALUE)patchUriFromServiceEx (
RedfishService,
Uri,
Content,
&(RedResponse->Headers),
&(RedResponse->HeaderCount),
&(RedResponse->StatusCode)
);
@ -661,12 +663,14 @@ RedfishPostToUri (
ZeroMem (RedResponse, sizeof (REDFISH_RESPONSE));
JsonValue = (EDKII_JSON_VALUE)postUriFromService (
JsonValue = (EDKII_JSON_VALUE)postUriFromServiceEx (
RedfishService,
Uri,
Content,
ContentSize,
ContentType,
&(RedResponse->Headers),
&(RedResponse->HeaderCount),
&(RedResponse->StatusCode)
);