#include using namespace httpserver; class hello_world_resource : public http_resource { public: std::shared_ptr render(const http_request&) { return std::shared_ptr(new string_response("Hello, World!")); } }; int main(int argc, char** argv) { webserver ws = create_webserver(8080); hello_world_resource hwr; ws.register_resource("/hello", &hwr); ws.start(true); return 0; }