mcl_http_client.h
Go to the documentation of this file.
1 
17 #ifndef MCL_HTTP_CLIENT_H_
18 #define MCL_HTTP_CLIENT_H_
19 
23 
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
28 
33 
38 {
39  const char *certificate;
41  const char *proxy_hostname;
42  const char *proxy_username;
43  const char *proxy_password;
44  const char *proxy_domain;
45  const char *user_agent;
51 
65 
79 
103 
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
115 #endif //MCL_HTTP_CLIENT_H_
E_MCL_PROXY
uint16_t mcl_uint16_t
HTTP request module interface header file.
MCL_CORE_EXPORT void mcl_http_client_destroy(mcl_http_client_t **http_client)
mcl_int32_t mcl_error_t
MCL_CORE_EXPORT mcl_error_t mcl_http_client_initialize(mcl_http_client_configuration_t *configuration, mcl_http_client_t **http_client)
uint32_t mcl_uint32_t
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)
#define MCL_CORE_EXPORT
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...
mcl_uint8_t mcl_bool_t
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.