34#ifndef API_MIP_HTTP_DELEGATE_CC_H_
35#define API_MIP_HTTP_DELEGATE_CC_H_
127 const mip_cc_http_send_callback_fn sendCallback,
A file Containing the common types used by the upe, file and protection modules.
Error definition and functions.
const char const mip_cc_http_result result
mip_cc_http_request_type
HTTP request type.
@ HTTP_REQUEST_TYPE_GET
HTTP GET.
@ HTTP_REQUEST_TYPE_POST
HTTP POST.
const mip_cc_http_cancel_callback_fn mip_cc_http_delegate mip_cc_error * errorInfo
mip_cc_handle * mip_cc_http_delegate
const char const mip_cc_http_result const mip_cc_http_response * response
const mip_cc_http_cancel_callback_fn mip_cc_http_delegate * httpDelegate
const mip_cc_http_cancel_callback_fn cancelCallback
mip_cc_http_result
Success/failure state of the HTTP operation.
@ HTTP_RESULT_FAILURE
HTTP operation failed (e.g.
@ HTTP_RESULT_OK
HTTP operation was completed successfull.
MIP_CC_CALLBACK(mip_cc_http_send_callback_fn, void, const mip_cc_http_request *, const void *)
Callback function definition for issuing an HTTP request.
MIP_CC_API(void) MIP_CC_NotifyHttpDelegateResponse(const mip_cc_http_delegate httpDelegate
Notifies an HTTP delegate that an HTTP response is ready.
Export/import and other macros for C API.
Defines success/error result codes.
mip_cc_result
API success/failure result.
Opaque handle to MIP object.
int64_t bodySize
Size of HTTP request body in bytes.
const char * url
HTTP request URL.
int64_t headersCount
Number of HTTP request headers.
const mip_cc_http_header * headers
Buffer containing HTTP request headers.
mip_cc_http_request_type type
HTTP request type (e.g.
const uint8_t * body
Buffer containg HTTP request body.
const char * id
Unique request ID–correlated with the same property in mip_cc_http_response.
const mip_cc_http_header * headers
Buffer containing HTTP response headers.
int64_t bodySize
Size of HTTP response body in bytes.
int32_t statusCode
HTTP response status code.
int64_t headersCount
Number of HTTP response headers.
const char * id
Unique request ID–correlated with the same property in mip_cc_http_request.
const uint8_t * body
Buffer containg HTTP response body.