/ReinforceTinyWebServer

Primary LanguageC++Apache License 2.0Apache-2.0

#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.

Update

2022.1.19

has been so long update this log....
add many abstract class for interface
introduce Constructor pattern to conn_pool

2022.1.4

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.

2022.1.3

  1. use lambda to simplify code.

  2. now it can add your own route,I try to imitate the conception like Flask.

  3. 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...

Setup

  1. change workspace

    # /usr/bin/bash cd <"your project path">

  2. compile file

    ./build.sh

  3. run the server

    ./server