2 #ifndef __LIB_HTTP_STRUCT_INCLUDE_H__ 3 #define __LIB_HTTP_STRUCT_INCLUDE_H__ 15 #elif defined(HTTP_DLL) // || defined(_WINDLL) 16 # if defined(HTTP_EXPORTS) || defined(protocol_EXPORTS) 18 # define HTTP_API __declspec(dllexport) 20 # elif !defined(HTTP_API) 21 # define HTTP_API __declspec(dllimport) 23 #elif !defined(HTTP_API) 71 #define HTTP_CHAT_OK 0 72 #define HTTP_CHAT_CONTINUE 1 73 #define HTTP_CHAT_DATA 2 74 #define HTTP_CHAT_CHUNK_HDR 3 75 #define HTTP_CHAT_CHUNK_DATA_ENDL 4 76 #define HTTP_CHAT_CHUNK_TRAILER 5 77 #define HTTP_CHAT_ERR_MIN 100 78 #define HTTP_CHAT_ERR_IO 101 79 #define HTTP_CHAT_ERR_PROTO 102 80 #define HTTP_CHAT_ERR_TOO_MANY_LINES 103 81 #define HTTP_CHAT_ERR_MAX 1000 84 #define HTTP_CHAT_FLAG_BUFFED 0x0001 87 #define HTTP_HDR_ENTRY_VIA "via" 88 #define HTTP_HDR_ENTRY_FORWARD_FOR "X-Forwarded-For" 145 #define HDR_RESTORE(hdr_ptr, hdr_type, hdr_member) \ 146 ((hdr_type *) (((char *) (hdr_ptr)) - offsetof(hdr_type, hdr_member))) 174 #define HTTP_HDR_REQ_FLAG_PARSE_PARAMS (1 << 0) 175 #define HTTP_HDR_REQ_FLAG_PARSE_COOKIE (1 << 1) int(* HTTP_HDR_NOTIFY)(int status, void *arg)
ACL_HTABLE * cookies_table
void(* chat_free_ctx_fn)(void *)
ACL_HTABLE * params_table
struct HTTP_HDR::@17 version
int(* HTTP_BODY_NOTIFY)(int status, char *data, int dlen, void *arg)
http_off_t content_length