mcl_http_response.h
Go to the documentation of this file.
1 
16 #ifndef MCL_HTTP_RESPONSE_H_
17 #define MCL_HTTP_RESPONSE_H_
18 
20 #include "mcl_core/mcl_list.h"
21 
22 #ifdef __cplusplus
23 extern "C"
24 {
25 #endif
26 
31 {
57 
63 typedef struct mcl_http_response_t
64 {
70 
87 
102 extern MCL_CORE_EXPORT mcl_error_t mcl_http_response_get_header(mcl_http_response_t *http_response, const char *header_name, char **header_value);
103 
111 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif
mcl_list_t * header
Header of http response.
size_t mcl_size_t
E_MCL_HTTP_STATUS_CODE status_code
Status code of http response.
mcl_size_t payload_size
Payload size of http response.
MCL_CORE_EXPORT mcl_error_t mcl_http_response_initialize(mcl_list_t *header, mcl_uint8_t *payload, mcl_size_t payload_size, E_MCL_HTTP_STATUS_CODE status_code, mcl_http_response_t **http_response)
Definition: http_response.c:17
mcl_int32_t mcl_error_t
List module interface header file.
mcl_uint8_t * payload
Payload of http response.
uint8_t mcl_uint8_t
#define MCL_CORE_EXPORT
MCL_CORE_EXPORT mcl_error_t mcl_http_response_get_status(mcl_http_response_t *http_response)
MCL_CORE_EXPORT void mcl_http_response_destroy(mcl_http_response_t **http_response)
MCL_CORE_EXPORT mcl_error_t mcl_http_response_get_header(mcl_http_response_t *http_response, const char *header_name, char **header_value)
Definition: http_response.c:44
Common module interface header file.
E_MCL_HTTP_STATUS_CODE