Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 1.65 KB

README.md

File metadata and controls

57 lines (33 loc) · 1.65 KB

Simple HTTP Server and Client Build Status

A simple HTTP server and client in C++11 built on top of libuv and http-parser.

Note: this project is just for trying out things. It is not tested at all! Use at your own risk.

Initialize the submodules:

./run.sh init

To compile on Linux:

./run.sh build

To compile on OSX:

./run.sh build_mac

Run the http server:

./build/Release/test_server  # on OSX
./out/Debug/test_server      # on Linux

Then go to these URLs using your browser:

Or access the server using the client code:

./build/Release/test_client "/add/1,4"
./build/Release/test_client "/add_async/8,11"
./build/Release/test_client "/add_flush"

See test_server.cc for the server code. See test_client.cc for the client code. The client tries to reconnect if connection to the server is failing.