Extract a query‐string parameter value from a request URI.

Synopsis

Declared in <httpserver.h>

std::optional<std::string>
GetQueryParameterFromUri(
    std::string_view uri,
    std::string_view key);

Return Value

The parameter value, or nullopt if it is not present.

Parameters

Name

Description

uri

The request target that may contain a query string.

key

The parameter name to look up.

Created with MrDocs