1 #ifndef __LIB_HTTP_UTIL_INCLUDE_H__ 2 #define __LIB_HTTP_UTIL_INCLUDE_H__ 22 #define HTTP_UTIL_FLAG_SET_DUMP_FILE (1 << 0) 23 #define HTTP_UTIL_FLAG_SET_DUMP_STREAM (1 << 1) 24 #define HTTP_UTIL_FLAG_HAS_RES_BODY (1 << 2) 25 #define HTTP_UTIL_FLAG_NO_RES_BODY (1 << 3) HTTP_API char * http_util_get_res_value(HTTP_UTIL *http_util, const char *name)
HTTP_API void const char * name
HTTP_API HTTP_HDR_ENTRY * http_util_get_res_entry(HTTP_UTIL *http_util, const char *name)
HTTP_API int http_util_get_res_hdr(HTTP_UTIL *http_util)
HTTP_API void http_util_off_res_entry(HTTP_UTIL *http_util, const char *name)
HTTP_API void http_util_set_req_content_length(HTTP_UTIL *http_util, int len)
HTTP_API void http_util_set_req_keep_alive(HTTP_UTIL *http_util, int timeout)
HTTP_API HTTP_HDR_ENTRY * http_util_get_req_entry(HTTP_UTIL *http_util, const char *name)
HTTP_API void http_util_free(HTTP_UTIL *http_util)
HTTP_API void http_util_set_req_connection(HTTP_UTIL *http_util, const char *value)
HTTP_API int http_util_has_res_body(HTTP_UTIL *http_util)
HTTP_API void http_util_set_dump_stream(HTTP_UTIL *http_util, ACL_VSTREAM *stream)
HTTP_API HTTP_UTIL * http_util_req_new(const char *url, const char *method)
HTTP_API void http_util_set_req_cookie(HTTP_UTIL *http_util, const char *name, const char *value)
HTTP_API int http_util_set_dump_file(HTTP_UTIL *http_util, const char *filename)
struct HTTP_UTIL HTTP_UTIL
HTTP_API void http_util_off_req_entry(HTTP_UTIL *http_util, const char *name)
HTTP_API int http_util_get_res_body(HTTP_UTIL *http_util, char *buf, size_t size)
HTTP_API int http_util_put_req_data(HTTP_UTIL *http_util, const char *data, size_t dlen)
HTTP_API HTTP_UTIL * http_util_res_new(int status)
ACL_VSTREAM * dump_stream
HTTP_API int http_util_dump_url_to_stream(const char *url, ACL_VSTREAM *stream)
HTTP_API void http_util_set_req_entry(HTTP_UTIL *http_util, const char *name, const char *value)
HTTP_API char * http_util_get_req_value(HTTP_UTIL *http_util, const char *name)
HTTP_API void http_util_set_res_entry(HTTP_UTIL *http_util, const char *name, const char *value)
HTTP_API int http_util_dump_url(const char *url, const char *dump)
HTTP_API int http_util_req_open(HTTP_UTIL *http_util)
HTTP_API void http_util_set_req_proxy(HTTP_UTIL *http_util, const char *proxy)
HTTP_API void http_util_set_req_refer(HTTP_UTIL *http_util, const char *refer)