Simple webserver implemented as a weekend project for learning purposes. Not intended to work out of the Box for most scenarios. Extended a few times with some smaller features like HTTP authorization.
This will probably server as a base for future projects that need some HTTP functionality.
# Build binary
make bin/webserver -j 4
# Run example file handler on port 8080 with root path as home, and test/test as credentials
bin/webserver 8080 ~ test test
# Build test binary
make tests -j 4
# Run unit tests
bin/unit_tests
The Makefile supports a release mode and running different sanitizers. All of these options need a manual make clean
beforehand.
RELEASE=1 make tests -j 4
SANITIZER=MEMORY make all -j 4
SANITIZER=ADDRESS make all -j 4