34 if (mRedfishHttpProtocol ==
NULL) {
38 return mRedfishHttpProtocol->CreateService (
40 RedfishConfigServiceInfo
56 IN REDFISH_SERVICE RedfishService
59 if (mRedfishHttpProtocol ==
NULL) {
63 return mRedfishHttpProtocol->FreeService (
82 IN REDFISH_PAYLOAD RedfishPayload
85 if (mRedfishHttpProtocol ==
NULL) {
89 return mRedfishHttpProtocol->JsonInPayload (
110 if (mRedfishHttpProtocol ==
NULL) {
111 return EFI_NOT_READY;
114 return mRedfishHttpProtocol->FreeRequest (
115 mRedfishHttpProtocol,
135 if (mRedfishHttpProtocol ==
NULL) {
136 return EFI_NOT_READY;
139 return mRedfishHttpProtocol->FreeResponse (
140 mRedfishHttpProtocol,
159 if (mRedfishHttpProtocol ==
NULL) {
160 return EFI_NOT_READY;
163 return mRedfishHttpProtocol->ExpireResponse (
164 mRedfishHttpProtocol,
188 IN REDFISH_SERVICE Service,
195 if (mRedfishHttpProtocol ==
NULL) {
196 return EFI_NOT_READY;
199 return mRedfishHttpProtocol->GetResource (
200 mRedfishHttpProtocol,
224 IN REDFISH_SERVICE Service,
230 if (mRedfishHttpProtocol ==
NULL) {
231 return EFI_NOT_READY;
234 return mRedfishHttpProtocol->PatchResource (
235 mRedfishHttpProtocol,
265 IN REDFISH_SERVICE Service,
269 IN CHAR8 *ContentType OPTIONAL,
273 if (mRedfishHttpProtocol ==
NULL) {
274 return EFI_NOT_READY;
277 return mRedfishHttpProtocol->PatchResource (
278 mRedfishHttpProtocol,
303 IN REDFISH_SERVICE Service,
309 if (mRedfishHttpProtocol ==
NULL) {
310 return EFI_NOT_READY;
313 return mRedfishHttpProtocol->PutResource (
314 mRedfishHttpProtocol,
344 IN REDFISH_SERVICE Service,
348 IN CHAR8 *ContentType OPTIONAL,
352 if (mRedfishHttpProtocol ==
NULL) {
353 return EFI_NOT_READY;
356 return mRedfishHttpProtocol->PutResource (
357 mRedfishHttpProtocol,
382 IN REDFISH_SERVICE Service,
388 if (mRedfishHttpProtocol ==
NULL) {
389 return EFI_NOT_READY;
392 return mRedfishHttpProtocol->PostResource (
393 mRedfishHttpProtocol,
423 IN REDFISH_SERVICE Service,
427 IN CHAR8 *ContentType OPTIONAL,
431 if (mRedfishHttpProtocol ==
NULL) {
432 return EFI_NOT_READY;
435 return mRedfishHttpProtocol->PostResource (
436 mRedfishHttpProtocol,
460 IN REDFISH_SERVICE Service,
465 if (mRedfishHttpProtocol ==
NULL) {
466 return EFI_NOT_READY;
469 return mRedfishHttpProtocol->DeleteResource (
470 mRedfishHttpProtocol,
501 IN REDFISH_SERVICE Service,
503 IN CHAR8 *Content OPTIONAL,
505 IN CHAR8 *ContentType OPTIONAL,
509 if (mRedfishHttpProtocol ==
NULL) {
510 return EFI_NOT_READY;
513 return mRedfishHttpProtocol->DeleteResource (
514 mRedfishHttpProtocol,
539 if (mRedfishHttpProtocol !=
NULL) {
540 gBS->CloseEvent (Event);
544 Status =
gBS->LocateProtocol (
545 &gEdkIIRedfishHttpProtocolGuid,
547 (VOID **)&mRedfishHttpProtocol
549 if (EFI_ERROR (Status)) {
553 gBS->CloseEvent (Event);
577 &gEdkIIRedfishHttpProtocolGuid,
REDFISH_SERVICE RedfishCreateService(IN REDFISH_CONFIG_SERVICE_INFORMATION *RedfishConfigServiceInfo)
EFI_STATUS RedfishHttpPatchResource(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, OUT REDFISH_RESPONSE *Response)
EFI_STATUS RedfishCleanupService(IN REDFISH_SERVICE RedfishService)
EFI_STATUS RedfishHttpPostResourceEx(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS RedfishHttpExpireResponse(IN EFI_STRING Uri)
EFI_STATUS RedfishHttpGetResource(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN REDFISH_REQUEST *Request OPTIONAL, OUT REDFISH_RESPONSE *Response, IN BOOLEAN UseCache)
EFI_STATUS RedfishHttpDeleteResourceEx(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content OPTIONAL, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS RedfishHttpPutResource(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, OUT REDFISH_RESPONSE *Response)
EFI_STATUS RedfishHttpPutResourceEx(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS RedfishHttpPatchResourceEx(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, IN UINTN ContentSize OPTIONAL, IN CHAR8 *ContentType OPTIONAL, OUT REDFISH_RESPONSE *Response)
EFI_STATUS EFIAPI RedfishHttpConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS RedfishHttpFreeResponse(IN REDFISH_RESPONSE *Response)
EFI_STATUS RedfishHttpFreeRequest(IN REDFISH_REQUEST *Request)
EFI_STATUS RedfishHttpPostResource(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, IN CHAR8 *Content, OUT REDFISH_RESPONSE *Response)
EDKII_JSON_VALUE RedfishJsonInPayload(IN REDFISH_PAYLOAD RedfishPayload)
EFI_STATUS RedfishHttpDeleteResource(IN REDFISH_SERVICE Service, IN EFI_STRING Uri, OUT REDFISH_RESPONSE *Response)
VOID EFIAPI RedfishHttpProtocolIsReady(IN EFI_EVENT Event, IN VOID *Context)
EFI_EVENT EFIAPI EfiCreateProtocolNotifyEvent(IN EFI_GUID *ProtocolGuid, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction, IN VOID *NotifyContext OPTIONAL, OUT VOID **Registration)