[#RegisterHTTPHandler] = RegisterHTTPHandler :mrdocs: Register handler for prefix. If multiple handlers match a prefix, the first‐registered one will be invoked. == Synopsis Declared in `<httpserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void RegisterHTTPHandler( std::string const& prefix, bool exactMatch, xref:HTTPRequestHandler.adoc[HTTPRequestHandler] const& handler); ---- == Parameters [cols="1,4"] |=== | Name| Description | *prefix* | The URI path prefix the handler responds to. | *exactMatch* | If true, only a request whose path equals prefix matches; otherwise any path starting with prefix matches. | *handler* | The callback invoked for matching requests. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#