RedfishPkg: implement Redfish HTTP protocol
implement Redfish HTTP protocol driver. Signed-off-by: Nickle Wang <nicklew@nvidia.com> Co-authored-by: Igor Kulchytskyy <igork@ami.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> Reviewed-by: Igor Kulchytskyy <igork@ami.com> Reviewed-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
1988f2df29
commit
0ce2012c6c
44
RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.h
Normal file
44
RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/** @file
|
||||
Definitions of RedfishHttpDxe
|
||||
|
||||
Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#ifndef EDKII_REDFISH_HTTP_DXE_H_
|
||||
#define EDKII_REDFISH_HTTP_DXE_H_
|
||||
|
||||
#include <Uefi.h>
|
||||
#include <IndustryStandard/Http11.h>
|
||||
|
||||
#include <Library/UefiLib.h>
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/RedfishContentCodingLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/HttpLib.h>
|
||||
#include <Library/JsonLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/RedfishDebugLib.h>
|
||||
#include <Library/ReportStatusCodeLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
|
||||
#include <Protocol/Http.h>
|
||||
#include <Protocol/EdkIIRedfishHttpProtocol.h>
|
||||
#include <Protocol/EdkIIRedfishCredential.h>
|
||||
#include <Protocol/RestEx.h>
|
||||
|
||||
#define IS_EMPTY_STRING(a) ((a) == NULL || (a)[0] == '\0')
|
||||
#define REDFISH_HTTP_CACHE_LIST_SIZE 0x80
|
||||
#define REDFISH_ERROR_MSG_MAX 128
|
||||
#define REDFISH_DEBUG_STRING_LENGTH 200
|
||||
#define REDFISH_HOST_NAME_MAX 64 // IPv6 maximum length (39) + "https://" (8) + port number (maximum 5)
|
||||
#define REDFISH_HTTP_ERROR_REPORT "Redfish HTTP %a failure(0x%x): %s"
|
||||
#define REDFISH_HTTP_CACHE_DEBUG DEBUG_MANAGEABILITY
|
||||
#define REDFISH_HTTP_CACHE_DEBUG_DUMP DEBUG_MANAGEABILITY
|
||||
#define REDFISH_HTTP_CACHE_DEBUG_REQUEST DEBUG_MANAGEABILITY
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user