OCI REST for ESP32
|
Contains the response from an API call. More...
#include <oci.h>
Public Member Functions | |
ociApiResponse (Header *responseHeaders={}, int responseHeaderCount=0) | |
Construct a response with an array of headers and the count. More... | |
ociApiResponse (String response, int statusCode, String opcRequestId, String errorMsg, Header *responseHeaders={}, int responseHeaderCount=0) | |
Construct a full response object. More... | |
Public Attributes | |
String | response |
The string returned from the API call. Usually JSON. | |
int | statusCode |
The HTTP status code returned. | |
String | opcRequestId |
The opc-request-id | |
String | errorMsg |
Any error message returned from the API call. | |
Header * | responseHeaders |
An array of headers to collect from the API call. | |
int | responseHeaderCount |
The count of headers to collect. | |
Contains the response from an API call.
Pass an array of Header objects if you want to retrieve headers sent back from the API.
|
inline |
Construct a response with an array of headers and the count.
responseHeaders | An array of headers (name only) |
responseHeaderCount | The count of headers in the array |
|
inline |
Construct a full response object.
Used internally.
response | The response text |
statusCode | The HTTP status code. Ex. 200. |
opcRequestId | The opc-request-id . |
errorMsg | The error returned from the API |
responseHeaders | An array of headers (name only) |
responseHeaderCount | The count of headers in the array |