#Attention
this project was forked from TinyWebServer,
it was not code by me.
I'm trying to improve it.
I'm a noob, so it just for learning myself.
has been so long update this log....
add many abstract class for interface
introduce Constructor pattern to conn_pool
convert code, use template to construct Router.
compile become little slowly opz.However it is very flexible now.
use hashmap to accept url parameter only exist http_conn
in viewer can make sense.
in all,if dont want use some data when connection, please dont provide http_conn
to Router.
- use
lambda
to simplify code. - now it can add your own route,I try to imitate the conception like Flask.
- and config your server param in
./conf/server-config.xml
,
so you can configure your particular option, and easily pass your conf among computer.
optimize code structure...
-
change workspace
# /usr/bin/bash cd <"your project path">
-
compile file
./build.sh
-
run the server
./server