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
37 IN REDFISH_REQUEST *Request
38 );
39
51 IN REDFISH_RESPONSE *Response
52 );
53
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
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_HTTP_METHOD
Definition: Http.h:43
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)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29