Skip to content

Repository files navigation

SimpleWebServer

made simple webserver to practice c++, currently only accepts GET requests and serves html files

External string parsing library

i have used pystring c++ project to parse http request.

  • Visual studio -> Add Existing item -> Choose pystring.h, pystring.cpp, pystring_impl.h
  • Project Properties -> C++ -> General -> add the pystring folder to "Additional include libraries"

Usage

Initialize webserver object

WebServer ws;
ws.add_route("/", "index.html");
ws.add_route("/health", "health.html");

std::string ip = "127.0.0.1";
ws.start(ip, 1234);

image not available

image not available image not available

About

made simple webserver to practice c++

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages