First public version

This commit is contained in:
Tindy X committed 2019-10-31 13:18:40 +08:00
1 parent ec0b5dd789
commit e8a822d010
26 files changed
+7941

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#ifndef WEBSERVER_H_INCLUDED
#define WEBSERVER_H_INCLUDED
typedef std::string (*response_callback)(std::string, std::string); //process arguments and POST data and return served-content
#define RESPONSE_CALLBACK_ARGS std::string argument, std::string postdata
struct listener_args
{
std::string listen_address;
int port;
int max_conn;
int max_workers;
};
void append_response(std::string type, std::string request, std::string content_type, response_callback response);
int start_web_server(void *argv);
int start_web_server_multi(void *argv);
#endif // WEBSERVER_H_INCLUDED