Simple-Web-Server/README.md
Ole Christian Eidheim c12b80bc21 Update README.md
2014-07-05 20:48:54 +02:00

758 B

Simple-Web-Server

A very simple, fast, multithreaded and platform independent HTTP server implemented using C++11 and Boost.Asio. An easy way to make REST resources available from C++ applications.

Features

  • Thread pool
  • Platform independent
  • HTTP persistent connection (for HTTP/1.1)
  • Simple way to add REST resources using regex for path, and anonymous functions

###Usage

See main.cpp for example usage.

Dependency

Boost C++ libraries must be installed, go to http://www.boost.org for download and instructions.

Compile and run

Compile with a C++11 compiler supporting regex (for instance g++ 4.9):

g++ -O3 -std=c++11 -lboost_system main.cpp httpserver.cpp -o httpserver

Then to run the server: ./httpserver