#include "common.h"#include <time.h>#include "config.h"#include "hashtable.h"#include "vector.h"#include "thread.h"#include "http.h"#include "client.h"Go to the source code of this file.
Data Structures | |
| struct | _cp_httpclient |
| struct | _cp_url_descriptor |
| struct | _cp_httpclient_result |
| struct | _cp_httpclient_ctl |
| struct | _cp_http_transfer_descriptor |
Defines | |
| #define | DEFAULT_MAX_REDIRECTS 10 |
Typedefs | |
| typedef CPROPS_DLL struct _cp_httpclient | cp_httpclient |
| typedef CPROPS_DLL struct _cp_url_descriptor | cp_url_descriptor |
| typedef CPROPS_DLL struct _cp_httpclient_result | cp_httpclient_result |
| typedef CPROPS_DLL struct _cp_httpclient_ctl | cp_httpclient_ctl |
| typedef void(* | cp_httpclient_callback )(cp_httpclient_result *response) |
| typedef CPROPS_DLL struct _cp_http_transfer_descriptor | cp_http_transfer_descriptor |
Enumerations | |
| enum | cp_http_result_status { CP_HTTP_RESULT_SUCCESS, CP_HTTP_RESULT_CONNECTION_FAILED, CP_HTTP_RESULT_CONNECTION_RESET, CP_HTTP_RESULT_TIMED_OUT, CP_HTTP_RESULT_WRITE_ERROR, CP_HTTP_RESULT_READ_ERROR } |
Functions | |
| __BEGIN_DECLS CPROPS_DLL int | cp_httpclient_init () |
| CPROPS_DLL int | cp_httpclient_shutdown () |
| CPROPS_DLL cp_httpclient * | cp_httpclient_create (char *host, int port) |
| CPROPS_DLL cp_httpclient * | cp_httpclient_create_proxy (char *host, int port, char *proxy_host, int proxy_port) |
| CPROPS_DLL void | cp_httpclient_destroy (cp_httpclient *client) |
| CPROPS_DLL void | cp_httpclient_set_http_version (cp_httpclient *client, cp_http_version version) |
| CPROPS_DLL void | cp_httpclient_set_request_type (cp_httpclient *client, cp_http_request_type type) |
| CPROPS_DLL void | cp_httpclient_set_header (cp_httpclient *client, char *header, char *value) |
| CPROPS_DLL void | cp_httpclient_set_auto_drop_headers (cp_httpclient *client, short mode) |
| CPROPS_DLL void | cp_httpclient_drop_headers (cp_httpclient *client) |
| CPROPS_DLL void * | cp_httpclient_set_parameter (cp_httpclient *client, char *name, char *value) |
| CPROPS_DLL void | cp_httpclient_set_auto_drop_parameters (cp_httpclient *client, short mode) |
| CPROPS_DLL void | cp_httpclient_drop_parameters (cp_httpclient *client) |
| CPROPS_DLL void | cp_httpclient_set_user_agent (cp_httpclient *client, char *agent) |
| CPROPS_DLL void | cp_httpclient_set_timeout (cp_httpclient *client, int sec, int usec) |
| CPROPS_DLL void | cp_httpclient_set_retry (cp_httpclient *client, int retry_count) |
| CPROPS_DLL void | cp_httpclient_allow_redirects (cp_httpclient *client, int mode) |
| CPROPS_DLL void | cp_httpclient_set_max_redirects (cp_httpclient *client, int max) |
| CPROPS_DLL int | cp_httpclient_reopen (cp_httpclient *client, char *host, int port) |
| CPROPS_DLL cp_url_descriptor * | cp_url_descriptor_create (char *host, short ssl, int port, char *uri) |
| CPROPS_DLL void | cp_url_descriptor_destroy (cp_url_descriptor *desc) |
| CPROPS_DLL short | cp_url_descriptor_ssl (cp_url_descriptor *desc) |
| CPROPS_DLL char * | cp_url_descriptor_host (cp_url_descriptor *desc) |
| CPROPS_DLL int | cp_url_descriptor_port (cp_url_descriptor *desc) |
| CPROPS_DLL char * | cp_url_descriptor_uri (cp_url_descriptor *desc) |
| CPROPS_DLL cp_url_descriptor * | cp_url_descriptor_parse (char *url) |
| CPROPS_DLL cp_httpclient_result * | cp_httpclient_result_create (cp_httpclient *client) |
| CPROPS_DLL void | cp_httpclient_result_destroy (cp_httpclient_result *res) |
| CPROPS_DLL void * | cp_httpclient_result_id (cp_httpclient_result *res) |
| CPROPS_DLL cp_http_result_status | cp_httpclient_result_status (cp_httpclient_result *res) |
| CPROPS_DLL cp_http_response * | cp_httpclient_result_get_response (cp_httpclient_result *res) |
| CPROPS_DLL cp_httpclient * | cp_httpclient_result_get_client (cp_httpclient_result *res) |
| CPROPS_DLL cp_httpclient_result * | cp_httpclient_fetch (cp_httpclient *client, char *uri) |
| CPROPS_DLL cp_httpclient_ctl * | cp_httpclient_ctl_create (int background) |
| CPROPS_DLL void | cp_httpclient_ctl_destroy (cp_httpclient_ctl *ctl) |
| CPROPS_DLL fd_set * | cp_httpclient_ctl_default_get_read_fd_set (int *num) |
| CPROPS_DLL fd_set * | cp_httpclient_ctl_get_read_fd_set (cp_httpclient_ctl *ctl, int *num) |
| CPROPS_DLL fd_set * | cp_httpclient_ctl_default_get_write_fd_set (int *num) |
| CPROPS_DLL fd_set * | cp_httpclient_ctl_get_write_fd_set (cp_httpclient_ctl *ctl, int *num) |
| CPROPS_DLL cp_http_transfer_descriptor * | cp_http_transfer_descriptor_create (void *id, cp_httpclient *client, cp_httpclient_callback callback, char *uri) |
| CPROPS_DLL void | cp_http_transfer_descriptor_destroy (cp_http_transfer_descriptor *desc) |
| CPROPS_DLL int | cp_httpclient_fetch_nb (cp_httpclient *client, char *uri, void *id, cp_httpclient_callback callback, int background) |
| CPROPS_DLL int | cp_httpclient_fetch_ctl (cp_httpclient_ctl *ctl, cp_httpclient *client, char *uri, void *id, cp_httpclient_callback callback) |
| CPROPS_DLL int | cp_httpclient_fetch_nb_exec () |
| CPROPS_DLL int | cp_httpclient_fetch_ctl_exec (cp_httpclient_ctl *ctl) |
Definition in file httpclient.h.
1.3.9.1