a simple multithreaded webserver
 
 
 
Go to file
heck b67c6bc46d Merge pull request 'trivial build system fix: remove wrong "`" character from Makefile' (#3) from positron-trivial-fix into master
Reviewed-on: #3
2023-08-30 13:40:29 +02:00
build-windows build-windows 2020-06-13 10:13:24 +02:00
htdocs even more weird 2020-06-08 22:00:49 +02:00
.gitignore Build; pEp wide build consistency / rename local.conf to build.conf / add BUILD_CONF env var. 2023-08-29 20:04:17 +02:00
LICENSE Initial commit 2020-06-08 11:03:42 +02:00
Makefile trivial build system fix: remove wrong "`" character from Makefile 2023-08-30 11:21:53 +02:00
README.md Doc: Improve README.md 2023-08-29 20:04:43 +02:00
build.conf.example Build; pEp wide build consistency / rename local.conf to build.conf / add BUILD_CONF env var. 2023-08-29 20:04:17 +02:00
test_webserver.cc avoid SIGABRT 2020-06-19 22:18:25 +02:00
url_parser.cc make URL.port unsigned, to match Webclient's interface. 2021-03-31 17:19:03 +02:00
url_parser.hh make URL.port unsigned, to match Webclient's interface. 2021-03-31 17:19:03 +02:00
webclient.cc implement HTTP redirects. That's what the URL parser is necessary at all. :-) 2021-03-31 17:20:00 +02:00
webclient.hh implement HTTP redirects. That's what the URL parser is necessary at all. :-) 2021-03-31 17:20:00 +02:00
webserver.cc for whatever reason we cannot write a 'response' to the socket, but need a 'response_serializer' on boost 1.67 (Debian 10) m( 2020-11-12 13:20:29 +01:00
webserver.hh webserver.hh:49:18: error: ‘mutex’ in namespace ‘std’ does not name a type. note: ‘std::mutex’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’? 2020-10-07 17:51:09 +02:00

README.md

webserver

a simple multithreaded webserver

for usage see this sample

Build Configuration

The build configuration file is called build.conf or can be specified (relative to repo root) using the env var BUILD_CONF.

Use the file build.conf.example as a template.

cp build.conf.example build.conf

Then, tweak it to your needs.

Build Dependencies

The boost headers and static libs are required. By default they are searched for in $PREFIX/include and $PREFIX/lib To change this behaviour there are env/build.conf variables BOOST_INCLUDE and BOOST_LIB.

Make Targets

Build

make - The default make target builds the static lib the webserver.

Test

make test - Builds and executes all tests

Install

make install - Installs the library into your $PREFIX
make uninstall - Uninstalls the library from your $PREFIX

Clean

make clean