A request contains all of the information required to make a call to the OCI API.
More...
#include <oci.h>
|
char * | host |
| The REST API endpoint host. Ex: objectstorage.us-phoenix-1.oraclecloud.com.
|
|
char * | path |
| The path. Ex: "/n/".
|
|
const char * | requestMethod |
| The HTTP method. See Oci for const values.
|
|
char * | endpointCert =NULL |
| The text value of the Root CA cert for the API endpoint. Used to make secure connections. For examp, run openssl s_client -connect objectstorage.us-phoenix-1.oraclecloud.com:443 -showcerts and find the value of the Root CA Cert.
|
|
char * | content = "" |
| The body to be passed to the API call.
|
|
char * | contentType ="application/json" |
| The content type.
|
|
Header * | requestHeaders |
| An array of Header objects (set both key and value)
|
|
int | requestHeaderCount |
| The count of headers in the requestHeaders array.
|
|
A request contains all of the information required to make a call to the OCI API.
◆ ociApiRequest()
ociApiRequest::ociApiRequest |
( |
char * |
host, |
|
|
char * |
path, |
|
|
const char * |
requestMethod, |
|
|
Header * |
requestHeaders = {} , |
|
|
int |
requestHeaderCount = 0 , |
|
|
char * |
endpointCert = NULL , |
|
|
char * |
content = "" , |
|
|
char * |
contentType = "application/json" |
|
) |
| |
|
inline |
An OCI API request.
- Parameters
-
host | The REST API endpoint host. Ex: objectstorage.us-phoenix-1.oraclecloud.com |
path | The path. Ex: "/n/" |
requestMethod | The HTTP method. See Oci for const values. |
requestHeaders | An array of Header objects (set both key and value) |
requestHeaderCount | The count of headers in the requestHeaders array |
endpointCert | The text value of the Root CA cert for the API endpoint. Used to make secure connections. For examp, run openssl s_client -connect objectstorage.us-phoenix-1.oraclecloud.com:443 -showcerts and find the value of the Root CA Cert. |
content | The body to be passed to the API call. |
contentType | The content type |
The documentation for this struct was generated from the following file: