Function URI::Template::ExpandTemplate¶
Defined in File Expander.h
Function Documentation¶
-
std::string
URI::Template
::
ExpandTemplate
(const Template &uri_template, const std::unordered_map<std::string, VarValue> &values)¶ Expands uri-template into a string.
Expands an
uri_template
into a string according to the rules from https://tools.ietf.org/html/rfc6570#section-3 Usesvalues
to locate variables values that are expanded. Variables which are not in the map treated as undefined.- Parameters
[in] uri_template – A template expression to expand.
[in] values – Variables values to use for expansion.
- Returns
Expansion result.