TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | ResetHttpTslSession (IN RESTEX_INSTANCE *Instance) |
EFI_STATUS | RedfishCheckHttpReceiveStatus (IN RESTEX_INSTANCE *Instance, IN EFI_STATUS HttpIoReceiveStatus) |
EFI_STATUS | RedfishHttpAddExpectation (IN EFI_REST_EX_PROTOCOL *This, IN EFI_HTTP_MESSAGE *RequestMessage, IN EFI_HTTP_HEADER **PreservedRequestHeaders, IN BOOLEAN *ItsWrite) |
RestExDxe support functions implementation.
Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
Copyright (c) 2023, American Megatrends International LLC. Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file RedfishRestExImpl.c.
EFI_STATUS RedfishCheckHttpReceiveStatus | ( | IN RESTEX_INSTANCE * | Instance, |
IN EFI_STATUS | HttpIoReceiveStatus | ||
) |
This function check Http receive status.
[in] | Instance | Pointer to EFI_REST_EX_PROTOCOL instance for a particular REST service. |
[in] | HttpIoReceiveStatus | This is the status return from HttpIoRecvResponse |
EFI_SUCCESS | The payload receive from Redfish service in successfully. |
EFI_NOT_READY | May need to resend the HTTP request. |
EFI_DEVICE_ERROR | Something wrong and can't be resolved. |
Others | Other errors as indicated. |
Definition at line 61 of file RedfishRestExImpl.c.
EFI_STATUS RedfishHttpAddExpectation | ( | IN EFI_REST_EX_PROTOCOL * | This, |
IN EFI_HTTP_MESSAGE * | RequestMessage, | ||
IN EFI_HTTP_HEADER ** | PreservedRequestHeaders, | ||
IN BOOLEAN * | ItsWrite | ||
) |
This function send the HTTP request without body to see if the write to URL is permitted by Redfish service. This function checks if the HTTP request has Content-length in HTTP header. If yes, set HTTP body to NULL and then send to service. Check the HTTP status for the further actions.
[in] | This | Pointer to EFI_REST_EX_PROTOCOL instance for a particular REST service. |
[in] | RequestMessage | Pointer to the HTTP request data for this resource |
[in] | PreservedRequestHeaders | The pointer to save the request headers |
[in] | ItsWrite | This is write method to URL. |
EFI_INVALID_PARAMETER | Improper given parameters. |
EFI_SUCCESS | This HTTP request is free to send to Redfish service. |
EFI_OUT_OF_RESOURCES | NOt enough memory to process. |
EFI_ACCESS_DENIED | Not allowed to write to this URL. |
Others | Other errors as indicated. |
Definition at line 130 of file RedfishRestExImpl.c.
EFI_STATUS ResetHttpTslSession | ( | IN RESTEX_INSTANCE * | Instance | ) |
Create a new TLS session because the previous one is closed.
[in] | Instance | Pointer to EFI_REST_EX_PROTOCOL instance for a particular REST service. |
EFI_SUCCESS | operation succeeded. |
EFI_ERROR | Other errors. |
Definition at line 25 of file RedfishRestExImpl.c.