Demo file used for running local tests
+#define SHOOTOUT_USE_DIRECT_WRITE 1
// update the demo.c file to use the existing folder structure and makefile
-#include "tests/websocket-shootout.h" // includes the "http.h" header
// #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);
// 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
*/
-#define THREAD_COUNT 8
+// #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);
}
