HomePort
|
Go to the source code of this file.
Data Structures | |
struct | data |
Functions | |
static int | basic_get_test (enum http_method method, char *host, char *path) |
static int | construct_body (char *body, int len, struct data *data) |
static size_t | data_from_curl (char *buffer, size_t buffer_size, size_t nmemb, char **userdata) |
static size_t | data_to_curl (void *ptr, size_t size, size_t nmemb, void *userdata) |
static void | exit_cb (EV_P_ ev_async *watcher, int revents) |
Exit callback for async watcher (Webserver) More... | |
static void | exit_handler (int sig) |
Handle correct exiting. More... | |
int | main (int argc, char *argv[]) |
Main function. More... | |
static char * | ncat (char *s1, const char *s2, int s2_len) |
static int | on_req_begin (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data) |
static int | on_req_body (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data, const char *buf, size_t len) |
static int | on_req_cmpl (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data) |
static int | on_req_hdr_cmpl (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data) |
static int | on_req_hdr_field (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data, const char *buf, size_t len) |
static int | on_req_hdr_value (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data, const char *buf, size_t len) |
static int | on_req_method (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data, const char *buf, size_t len) |
static int | on_req_url (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data, const char *buf, size_t len) |
static int | on_req_url_cmpl (struct httpws *ins, struct http_request *req, void *ws_ctx, void **req_data) |
static char * | simple_get_request (char *url) |
static int | test_thread () |
Test thread. More... | |
static void * | webserver_thread (void *arg) |
Webserver thread. More... | |
Variables | |
static struct ev_async | exit_watcher |
static struct ev_loop * | loop |
static char * | req_data = "Hello world" |
static int | started = 0 |
static struct httpws * | ws = NULL |
struct data |
Definition at line 32 of file header_parser_test.c.
|
static |
Definition at line 136 of file http-webserver_test.c.
|
static |
|
static |
|
static |
|
static |
Exit callback for async watcher (Webserver)
Definition at line 469 of file http-webserver_test.c.
|
static |
Handle correct exiting.
Definition at line 462 of file http-webserver_test.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function.
Definition at line 525 of file http-webserver_test.c.
|
static |
|
static |
|
static |
Definition at line 378 of file http-webserver_test.c.
|
static |
Definition at line 412 of file http-webserver_test.c.
|
static |
Definition at line 353 of file http-webserver_test.c.
|
static |
Definition at line 297 of file http-webserver_test.c.
|
static |
Definition at line 324 of file http-webserver_test.c.
|
static |
Definition at line 246 of file http-webserver_test.c.
|
static |
Definition at line 262 of file http-webserver_test.c.
|
static |
Definition at line 278 of file http-webserver_test.c.
|
static |
Definition at line 93 of file http-webserver_test.c.
|
static |
Test thread.
Definition at line 189 of file http-webserver_test.c.
|
static |
Webserver thread.
Definition at line 482 of file http-webserver_test.c.
|
static |
Definition at line 55 of file http-webserver_test.c.
|
static |
Definition at line 54 of file http-webserver_test.c.
|
static |
Definition at line 50 of file http-webserver_test.c.
|
static |
Definition at line 52 of file http-webserver_test.c.
|
static |
Definition at line 53 of file http-webserver_test.c.