[#GetQueryParameterFromUri]
= GetQueryParameterFromUri
:mrdocs:

Extract a query&hyphen;string parameter value from a request URI&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::string&gt;
GetQueryParameterFromUri(
    std::string&lowbar;view uri,
    std::string&lowbar;view key);
----

== Return Value

The parameter value, or nullopt if it is not present&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *uri*
| The request target that may contain a query string&period;
| *key*
| The parameter name to look up&period;
|===


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