TianoCore EDK2 master
|
#include "RedfishHttpDxe.h"
Go to the source code of this file.
Macros | |
#define | REDFISH_CONTENT_LENGTH_SIZE 80 |
#define | REDFISH_COMMON_HEADER_SIZE 5 |
#define | REDFISH_HTTP_HEADER_ODATA_VERSION_STR "OData-Version" |
#define | REDFISH_HTTP_HEADER_ODATA_VERSION_VALUE "4.0" |
#define | REDFISH_HTTP_HEADER_USER_AGENT_VALUE "edk2redfish" |
#define | REDFISH_HTTP_HEADER_CONNECTION_STR "Connection" |
#define | REDFISH_HTTP_HEADER_CONNECTION_VALUE "Keep-Alive" |
#define | REDFISH_HTTP_CONTENT_ENCODING_NONE "None" |
#define | ASCII_STR_DUPLICATE(a) (AllocateCopyPool (AsciiStrSize ((a)), (a))) |
Functions | |
EFI_STATUS | ReleaseRedfishRequest (IN REDFISH_REQUEST *Request) |
EFI_STATUS | ReleaseRedfishResponse (IN REDFISH_RESPONSE *Response) |
EFI_STATUS | HttpSendReceive (IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN EFI_HTTP_METHOD Method, IN REDFISH_REQUEST *Request OPTIONAL, OUT REDFISH_RESPONSE *Response) |
Definitions of RedfishHttpOperation
Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file RedfishHttpOperation.h.
#define ASCII_STR_DUPLICATE | ( | a | ) | (AllocateCopyPool (AsciiStrSize ((a)), (a))) |
Definition at line 23 of file RedfishHttpOperation.h.
#define REDFISH_COMMON_HEADER_SIZE 5 |
Definition at line 16 of file RedfishHttpOperation.h.
#define REDFISH_CONTENT_LENGTH_SIZE 80 |
Definition at line 15 of file RedfishHttpOperation.h.
#define REDFISH_HTTP_CONTENT_ENCODING_NONE "None" |
Definition at line 22 of file RedfishHttpOperation.h.
#define REDFISH_HTTP_HEADER_CONNECTION_STR "Connection" |
Definition at line 20 of file RedfishHttpOperation.h.
#define REDFISH_HTTP_HEADER_CONNECTION_VALUE "Keep-Alive" |
Definition at line 21 of file RedfishHttpOperation.h.
#define REDFISH_HTTP_HEADER_ODATA_VERSION_STR "OData-Version" |
Definition at line 17 of file RedfishHttpOperation.h.
#define REDFISH_HTTP_HEADER_ODATA_VERSION_VALUE "4.0" |
Definition at line 18 of file RedfishHttpOperation.h.
#define REDFISH_HTTP_HEADER_USER_AGENT_VALUE "edk2redfish" |
Definition at line 19 of file RedfishHttpOperation.h.
EFI_STATUS HttpSendReceive | ( | IN REDFISH_SERVICE | Service, |
IN EFI_STRING | Uri, | ||
IN EFI_HTTP_METHOD | Method, | ||
IN REDFISH_REQUEST *Request | OPTIONAL, | ||
OUT REDFISH_RESPONSE * | Response | ||
) |
This function send Redfish request to Redfish service by calling Rest Ex protocol.
[in] | Service | Pointer to Redfish service. |
[in] | Uri | Uri of Redfish service. |
[in] | Method | HTTP method. |
[in] | Request | Request data. This is optional. |
[out] | Response | Redfish response data. |
EFI_SUCCESS | Request is sent and received successfully. |
Others | Errors occur. |
Definition at line 624 of file RedfishHttpOperation.c.
EFI_STATUS ReleaseRedfishRequest | ( | IN REDFISH_REQUEST * | Request | ) |
This function free resources in Request. Request is no longer available after this function returns successfully.
[in] | Request | HTTP request to be released. |
EFI_SUCCESS | Resource is released successfully. |
Others | Errors occur. |
Definition at line 73 of file RedfishHttpOperation.c.
EFI_STATUS ReleaseRedfishResponse | ( | IN REDFISH_RESPONSE * | Response | ) |
This function free resources in given Response.
[in] | Response | HTTP response to be released. |
EFI_SUCCESS | Resource is released successfully. |
Others | Errors occur. |
Definition at line 112 of file RedfishHttpOperation.c.