We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
If the requestd URL is http://xxx.xx/xx/xx/?name=demoName&id=demoId
http://xxx.xx/xx/xx/?name=demoName&id=demoId
auto name = ctx.request->getQueryParam("name"); auto id = ctx.request->getQueryParam("id");
the name is string demoName and id is string demoId.
name
demoName
id
demoId
If the query string parameter does not exist, then an empty string is returned. Such as the following:
the requested URL is http://xx.xx/xx/?name=demoName
http://xx.xx/xx/?name=demoName
auto id = ctx.request->getQueryParam("id"); // id ==""