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

Update the request handler method&period; Used for shutdown to reject new requests&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1bc166e8)&rsqb;&rsqb;
void
SetRequestHandler(std::function&lt;void(std::unique&lowbar;ptr&lt;HTTPRequest&gt;&&)&gt; func);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| The new callback invoked for each parsed request&period;
|===


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