17 #ifndef MCL_HTTP_CLIENT_H_ 18 #define MCL_HTTP_CLIENT_H_ 115 #endif //MCL_HTTP_CLIENT_H_
HTTP request module interface header file.
MCL_CORE_EXPORT void mcl_http_client_destroy(mcl_http_client_t **http_client)
MCL_CORE_EXPORT mcl_error_t mcl_http_client_initialize(mcl_http_client_configuration_t *configuration, mcl_http_client_t **http_client)
const char * user_agent
User agent.
const char * proxy_username
Proxy username. Optional if proxy host name is set, ineffective otherwise.
E_MCL_PROXY proxy_type
Proxy type E_MCL_PROXY. Mandatory if proxy host name is set, ineffective otherwise.
mcl_bool_t certificate_is_file
Flag to check if certificate is given as file or string.
mcl_uint16_t proxy_port
Proxy port number. Mandatory if proxy host name is set, ineffective otherwise.
const char * certificate
Certificate. If it is NULL, default CA certificate store will be used (if available).
HTTP response module header file.
MCL_CORE_EXPORT mcl_error_t mcl_http_client_add_certificate(mcl_http_client_t *http_client, const char *certificate, mcl_bool_t is_file)
MCL_CORE_EXPORT mcl_error_t mcl_http_client_send(mcl_http_client_t *http_client, mcl_http_request_t *http_request, mcl_http_response_t **http_response)
mcl_uint32_t http_request_timeout
Timeout value (in seconds) for HTTP requests. Default timeout is 300 seconds.
const char * proxy_domain
Proxy domain. Optional if proxy host name and proxy username are set, ineffective otherwise...
const char * proxy_password
Proxy password. Mandatory if proxy host name and proxy username are set, ineffective otherwise...
mcl_uint16_t port
Port number.
const char * proxy_hostname
Proxy hostname. Optional.
Common module interface header file.