Functions | |
dpl_status_t | dpl_read_http_reply_buffered (dpl_conn_t *conn, int expect_data, int *http_statusp, dpl_header_func_t header_func, dpl_buffer_func_t buffer_func, void *cb_arg) |
read http reply More... | |
int | dpl_connection_close (dpl_dict_t *headers_returned) |
check for Connection header More... | |
char * | dpl_location (dpl_dict_t *headers_returned) |
check for Location header More... | |
dpl_status_t | dpl_read_http_reply_ext (dpl_conn_t *conn, int expect_data, int buffer_provided, char **data_bufp, unsigned int *data_lenp, dpl_dict_t **headersp, int *connection_closep) |
read http reply simple version More... | |
int dpl_connection_close | ( | dpl_dict_t * | headers_returned | ) |
headers_returned |
char* dpl_location | ( | dpl_dict_t * | headers_returned | ) |
headers_returned |
dpl_status_t dpl_read_http_reply_buffered | ( | dpl_conn_t * | conn, |
int | expect_data, | ||
int * | http_statusp, | ||
dpl_header_func_t | header_func, | ||
dpl_buffer_func_t | buffer_func, | ||
void * | cb_arg | ||
) |
TODO: use a callback instead of expect_data
conn | |
expect_data | // always set to 1, expect for HEAD-like methods! |
http_statusp | returns the http status |
header_func | |
buffer_func | |
cb_arg |
dpl_status_t dpl_read_http_reply_ext | ( | dpl_conn_t * | conn, |
int | expect_data, | ||
int | buffer_provided, | ||
char ** | data_bufp, | ||
unsigned int * | data_lenp, | ||
dpl_dict_t ** | headersp, | ||
int * | connection_closep | ||
) |
fd | |
expect_data | |
buffer_provided | if 1 then caller provides buffer and length in *data_bufp and *data_lenp |
data_bufp | caller must free it |
data_lenp | |
headersp | caller must free it |