18#ifndef __PJLIB_UTIL_HTTP_CLIENT_H__
19#define __PJLIB_UTIL_HTTP_CLIENT_H__
48#define PJ_HTTP_HEADER_SIZE 32
381 char *name,
char *val);
struct pj_ioqueue_t pj_ioqueue_t
unsigned short pj_uint16_t
struct pj_timer_heap_t pj_timer_heap_t
pj_status_t pj_http_headers_add_elmt(pj_http_headers *headers, pj_str_t *name, pj_str_t *val)
pj_status_t pj_http_req_parse_url(const pj_str_t *url, pj_http_url *hurl)
void pj_http_req_param_default(pj_http_req_param *param)
pj_status_t pj_http_req_start(pj_http_req *http_req)
pj_bool_t pj_http_req_is_running(const pj_http_req *http_req)
pj_status_t pj_http_req_destroy(pj_http_req *http_req)
#define PJ_HTTP_HEADER_SIZE
Definition: http_client.h:48
pj_status_t pj_http_headers_add_elmt2(pj_http_headers *headers, char *name, char *val)
struct pj_http_req pj_http_req
Definition: http_client.h:42
void * pj_http_req_get_user_data(pj_http_req *http_req)
pj_status_t pj_http_req_cancel(pj_http_req *http_req, pj_bool_t notify)
pj_status_t pj_http_req_create(pj_pool_t *pool, const pj_str_t *url, pj_timer_heap_t *timer, pj_ioqueue_t *ioqueue, const pj_http_req_param *param, const pj_http_req_callback *hcb, pj_http_req **http_req)
void pj_http_req_set_timeout(pj_http_req *http_req, const pj_time_val *timeout)
Definition: http_client.h:226
pj_str_t opaque
Definition: http_client.h:231
pj_str_t qop
Definition: http_client.h:234
pj_str_t algorithm
Definition: http_client.h:233
pj_str_t domain
Definition: http_client.h:229
int stale
Definition: http_client.h:232
pj_str_t nonce
Definition: http_client.h:230
pj_str_t scheme
Definition: http_client.h:227
pj_str_t realm
Definition: http_client.h:228
Definition: http_client.h:77
pj_str_t data
Definition: http_client.h:117
unsigned data_type
Definition: http_client.h:109
pj_str_t realm
Definition: http_client.h:94
pj_str_t scheme
Definition: http_client.h:85
pj_str_t username
Definition: http_client.h:101
Definition: http_client.h:271
void(* on_response)(pj_http_req *http_req, const pj_http_resp *resp)
Definition: http_client.h:279
void(* on_complete)(pj_http_req *http_req, pj_status_t status, const pj_http_resp *resp)
Definition: http_client.h:339
void(* on_data_read)(pj_http_req *http_req, void *data, pj_size_t size)
Definition: http_client.h:313
void(* on_send_data)(pj_http_req *http_req, void **data, pj_size_t *size)
Definition: http_client.h:297
Definition: http_client.h:178
pj_size_t total_size
Definition: http_client.h:181
void * data
Definition: http_client.h:179
pj_size_t size
Definition: http_client.h:180
Definition: http_client.h:127
pj_uint16_t source_port_range_start
Definition: http_client.h:201
struct pj_http_req_param::pj_http_reqdata reqdata
int addr_family
Definition: http_client.h:132
pj_time_val timeout
Definition: http_client.h:150
pj_http_auth_cred auth_cred
Definition: http_client.h:188
pj_http_headers headers
Definition: http_client.h:162
pj_str_t method
Definition: http_client.h:138
pj_uint16_t source_port_range_size
Definition: http_client.h:209
pj_uint16_t max_retries
Definition: http_client.h:218
void * user_data
Definition: http_client.h:156
pj_str_t version
Definition: http_client.h:144
Definition: http_client.h:241
pj_http_headers headers
Definition: http_client.h:245
pj_uint16_t status_code
Definition: http_client.h:243
pj_str_t reason
Definition: http_client.h:244
pj_size_t size
Definition: http_client.h:251
pj_http_auth_chal auth_chal
Definition: http_client.h:246
pj_str_t version
Definition: http_client.h:242
void * data
Definition: http_client.h:250
pj_int32_t content_length
Definition: http_client.h:248
Definition: http_client.h:258
pj_str_t path
Definition: http_client.h:264
pj_str_t username
Definition: http_client.h:259
pj_str_t passwd
Definition: http_client.h:260
pj_uint16_t port
Definition: http_client.h:263
pj_str_t host
Definition: http_client.h:262
pj_str_t protocol
Definition: http_client.h:261