Extract a query-string parameter value from a request URI.
Declared in <httpserver.h>
std::optional<std::string>
GetQueryParameterFromUri(
std::string_view uri,
std::string_view key);
The parameter value, or nullopt if it is not present.
| Name | Description |
|---|---|
| uri | The request target that may contain a query string. |
| key | The parameter name to look up. |