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
Name |
Description |
func |
Callback invoked with ownership of every fully parsed request. |
Created with MrDocs