[#HTTPServer-2constructor]
= xref:HTTPServer.adoc[HTTPServer]::HTTPServer
:relfileprefix: ../
:mrdocs:

Construct a server that dispatches each parsed request to the given handler&period;

== Synopsis

Declared in `&lt;httpserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
HTTPServer(std::function&lt;void(std::unique&lowbar;ptr&lt;HTTPRequest&gt;&&)&gt; func);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| Callback invoked with ownership of every fully parsed request&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
