TianoCore EDK2
master
Loading...
Searching...
No Matches
RedfishHttpOperation.h
Go to the documentation of this file.
1
10
#ifndef EDKII_REDFISH_HTTP_OPERATION_H_
11
#define EDKII_REDFISH_HTTP_OPERATION_H_
12
13
#include "
RedfishHttpDxe.h
"
14
15
#define REDFISH_CONTENT_LENGTH_SIZE 80
16
#define REDFISH_COMMON_HEADER_SIZE 5
17
#define REDFISH_HTTP_HEADER_ODATA_VERSION_STR "OData-Version"
18
#define REDFISH_HTTP_HEADER_ODATA_VERSION_VALUE "4.0"
19
#define REDFISH_HTTP_HEADER_USER_AGENT_VALUE "edk2redfish"
20
#define REDFISH_HTTP_HEADER_CONNECTION_STR "Connection"
21
#define REDFISH_HTTP_HEADER_CONNECTION_VALUE "Keep-Alive"
22
#define REDFISH_HTTP_CONTENT_ENCODING_NONE "None"
23
#define ASCII_STR_DUPLICATE(a) (AllocateCopyPool (AsciiStrSize ((a)), (a)))
24
35
EFI_STATUS
36
ReleaseRedfishRequest
(
37
IN
REDFISH_REQUEST
*Request
38
);
39
49
EFI_STATUS
50
ReleaseRedfishResponse
(
51
IN
REDFISH_RESPONSE
*Response
52
);
53
68
EFI_STATUS
69
HttpSendReceive
(
70
IN
REDFISH_SERVICE Service,
71
IN
EFI_STRING Uri,
72
IN
EFI_HTTP_METHOD
Method,
73
IN
REDFISH_REQUEST
*Request OPTIONAL,
74
OUT
REDFISH_RESPONSE
*Response
75
);
76
77
#endif
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
EFI_HTTP_METHOD
EFI_HTTP_METHOD
Definition:
Http.h:43
RedfishHttpDxe.h
ReleaseRedfishRequest
EFI_STATUS ReleaseRedfishRequest(IN REDFISH_REQUEST *Request)
Definition:
RedfishHttpOperation.c:73
ReleaseRedfishResponse
EFI_STATUS ReleaseRedfishResponse(IN REDFISH_RESPONSE *Response)
Definition:
RedfishHttpOperation.c:112
HttpSendReceive
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)
Definition:
RedfishHttpOperation.c:624
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
REDFISH_REQUEST
Definition:
RedfishServiceData.h:25
REDFISH_RESPONSE
Definition:
RedfishServiceData.h:36
RedfishPkg
RedfishHttpDxe
RedfishHttpOperation.h
Generated on Fri Nov 15 2024 18:01:23 for TianoCore EDK2 by
1.9.6