Construct a server that dispatches each parsed request to the given handler.
Declared in <httpserver.h>
explicit
HTTPServer(std::function<void(std::unique_ptr<HTTPRequest>&&)> func);
| Name | Description |
|---|---|
| func | Callback invoked with ownership of every fully parsed request. |