blob: 85bea960ab039af92d7838be636461501ec10cc5 [file] [log] [blame] [raw]
#define SHOOTOUT_USE_DIRECT_WRITE 1
// update the demo.c file to use the existing folder structure and makefile
// #include "tests/http_ws.h" // includes the "http.h" header
// #include "mempool.h" // includes the "http.h" header
#include "tests/websocket-shootout.h" // includes the "http.h" header
// void hpack_test_huffman(void);
// void hpack_test_int_primitive(void);
// void hpack_test_string_packing(void);
// int main(void) {
// hpack_test_string_packing();
// hpack_test_huffman();
// hpack_test_int_primitive();
// mempool_test();
// // print_huff();
// fprintf(stderr, "Done.\n");
// return 0;
// }
// void on_http_hello(http_request_s *req) {
// http_response_s response = http_response_init(req);
// http_response_write_body(&response, "Hello World!", 12);
// http_response_finish(&response);
// }
/*****************************
The main function
*/
// #undef THREAD_COUNT
#ifndef THREAD_COUNT
#define THREAD_COUNT 1
#endif
int main(void) {
// mempool_test();
// spn_lock_test();
// http_parser_test();
// HTTP_WEBSOCKET_TEST();
HTTP_SHOOTOUT_TEST();
// http1_listen("3000", NULL, .on_request = on_http_hello);
// server_run(.on_init = NULL);
}