[#HTTPServer-2constructor] = xref:HTTPServer.adoc[HTTPServer]::HTTPServer :relfileprefix: ../ :mrdocs: Construct a server that dispatches each parsed request to the given handler. == Synopsis Declared in `<httpserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit HTTPServer(std::function<void(std::unique_ptr<HTTPRequest>&&)> func); ---- == Parameters [cols="1,4"] |=== | Name| Description | *func* | Callback invoked with ownership of every fully parsed request. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#