
Go to the source code of this file.
Classes | |
| struct | httpread |
Defines | |
| #define | HTTPREAD_BODYBUF_DELTA 4096 /* increase allocation by this */ |
| #define | httpread_debug 0 /* eliminates even the debugging code */ |
| #define | HTTPREAD_HEADER_MAX_SIZE 4096 /* max allowed for headers */ |
| #define | HTTPREAD_READBUF_SIZE 1024 /* read in chunks of this size */ |
Functions | |
| static int | hex_value (int c) |
| struct httpread * | httpread_create (int sd, void(*cb)(struct httpread *handle, void *cookie, enum httpread_event e), void *cookie, int max_bytes, int timeout_seconds) |
| void * | httpread_data_get (struct httpread *h) |
| void | httpread_destroy (struct httpread *h) |
| static int | httpread_hdr_analyze (struct httpread *h) |
| char * | httpread_hdr_get (struct httpread *h) |
| char * | httpread_hdr_line_get (struct httpread *h, const char *tag) |
| static int | httpread_hdr_option_analyze (struct httpread *h, char *hbp) |
| enum httpread_hdr_type | httpread_hdr_type_get (struct httpread *h) |
| int | httpread_length_get (struct httpread *h) |
| static void | httpread_read_handler (int sd, void *eloop_ctx, void *sock_ctx) |
| int | httpread_reply_code_get (struct httpread *h) |
| static void | httpread_timeout_handler (void *eloop_data, void *user_ctx) |
| char * | httpread_uri_get (struct httpread *h) |
| static int | word_eq (char *s1, char *s2) |
| #define HTTPREAD_BODYBUF_DELTA 4096 /* increase allocation by this */ |
Definition at line 51 of file httpread.c.
| #define httpread_debug 0 /* eliminates even the debugging code */ |
Definition at line 60 of file httpread.c.
| #define HTTPREAD_HEADER_MAX_SIZE 4096 /* max allowed for headers */ |
Definition at line 50 of file httpread.c.
| #define HTTPREAD_READBUF_SIZE 1024 /* read in chunks of this size */ |
Definition at line 49 of file httpread.c.
| static int hex_value | ( | int | c | ) | [static] |
Definition at line 141 of file httpread.c.
| struct httpread* httpread_create | ( | int | sd, |
| void(*)(struct httpread *handle, void *cookie, enum httpread_event e) | cb, | ||
| void * | cookie, | ||
| int | max_bytes, | ||
| int | timeout_seconds | ||
| ) | [read] |
Definition at line 738 of file httpread.c.
| void* httpread_data_get | ( | struct httpread * | h | ) |
Definition at line 817 of file httpread.c.
| void httpread_destroy | ( | struct httpread * | h | ) |
Definition at line 158 of file httpread.c.
| static int httpread_hdr_analyze | ( | struct httpread * | h | ) | [static] |
Definition at line 230 of file httpread.c.
| char* httpread_hdr_get | ( | struct httpread * | h | ) |
Definition at line 827 of file httpread.c.
| char* httpread_hdr_line_get | ( | struct httpread * | h, |
| const char * | tag | ||
| ) |
Definition at line 841 of file httpread.c.
| static int httpread_hdr_option_analyze | ( | struct httpread * | h, |
| char * | hbp | ||
| ) | [static] |
Definition at line 193 of file httpread.c.
| enum httpread_hdr_type httpread_hdr_type_get | ( | struct httpread * | h | ) |
Definition at line 784 of file httpread.c.
| int httpread_length_get | ( | struct httpread * | h | ) |
Definition at line 807 of file httpread.c.
| static void httpread_read_handler | ( | int | sd, |
| void * | eloop_ctx, | ||
| void * | sock_ctx | ||
| ) | [static] |
Definition at line 401 of file httpread.c.
| int httpread_reply_code_get | ( | struct httpread * | h | ) |
Definition at line 800 of file httpread.c.
| static void httpread_timeout_handler | ( | void * | eloop_data, |
| void * | user_ctx | ||
| ) | [static] |
Definition at line 181 of file httpread.c.
| char* httpread_uri_get | ( | struct httpread * | h | ) |
Definition at line 793 of file httpread.c.
| static int word_eq | ( | char * | s1, |
| char * | s2 | ||
| ) | [static] |
Definition at line 116 of file httpread.c.