11 HTTPREAD_EVENT_FILE_READY = 1,
12 HTTPREAD_EVENT_TIMEOUT = 2,
13 HTTPREAD_EVENT_ERROR = 3
20 enum httpread_hdr_type {
21 HTTPREAD_HDR_TYPE_UNKNOWN = 0,
22 HTTPREAD_HDR_TYPE_REPLY = 1,
23 HTTPREAD_HDR_TYPE_GET = 2,
24 HTTPREAD_HDR_TYPE_HEAD = 3,
25 HTTPREAD_HDR_TYPE_POST = 4,
26 HTTPREAD_HDR_TYPE_PUT = 5,
27 HTTPREAD_HDR_TYPE_DELETE = 6,
28 HTTPREAD_HDR_TYPE_TRACE = 7,
29 HTTPREAD_HDR_TYPE_CONNECT = 8,
30 HTTPREAD_HDR_TYPE_NOTIFY = 9,
31 HTTPREAD_HDR_TYPE_M_SEARCH = 10,
32 HTTPREAD_HDR_TYPE_M_POST = 11,
33 HTTPREAD_HDR_TYPE_SUBSCRIBE = 12,
34 HTTPREAD_HDR_TYPE_UNSUBSCRIBE = 13,
50 void httpread_destroy(
struct httpread *h);
67 void (*cb)(
struct httpread *handle,
void *cookie,
68 enum httpread_event e),
76 enum httpread_hdr_type httpread_hdr_type_get(
struct httpread *h);
82 char *httpread_uri_get(
struct httpread *h);
85 int httpread_reply_code_get(
struct httpread *h);
89 int httpread_length_get(
struct httpread *h);
95 void * httpread_data_get(
struct httpread *h);
101 char * httpread_hdr_get(
struct httpread *h);
111 char * httpread_hdr_line_get(
struct httpread *h,
const char *tag);
Definition: httpread.c:46