HTTPServer::HTTPServer

Construct a server that dispatches each parsed request to the given handler.

Synopsis

Declared in <httpserver.h>

explicit
HTTPServer(std::function<void(std::unique_ptr<HTTPRequest>&&)> func);

Parameters

NameDescription
funcCallback invoked with ownership of every fully parsed request.