A Modern C++ HTTP Serevr Implementation
An http server implemented in modern C++
Supported HTTP methods :
GET
POST (POST static resource will return 405 Method Not Allowed)
Supports static resources and supports Range request headers . Data compression is not yet supported.
Supports Lua execution as a server-side script .
In Linux, you can configure the boot performance mode and use Epoll ET to achieve the efficiency of Apache 2.4.
The port number and server root directory support dynamic specification, the default port is 9001, and the root directory is the current directory.
Create config.lua in the startup folder to override the default configuration, the sample configuration is as follows:
server_root = " /home/kiritow "
server_port = 9001
deploy_mode = 1Where deploy_mode=0 is the default configuration, and thread pool is used to handle connections. When deploy_mode=1 is launched in Linux, it is in performance mode.
Under Linux: Call python build.py for compilation. The compiled output file is main .
Under Windows: If you install and configure g++, you can use the build.py script to compile. Otherwise, you need to build a VS project.

