getQuery convenience function

This commit is contained in:
badaix 2016-10-30 14:55:34 +01:00
parent 54e8eb2dcc
commit f6e3c57ee5
3 changed files with 13 additions and 4 deletions

View file

@ -26,6 +26,7 @@
using json = nlohmann::json;
// scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]
struct StreamUri
{
StreamUri(const std::string& uri);
@ -47,6 +48,7 @@ struct StreamUri
std::string id() const;
json toJson() const;
std::string getQuery(const std::string& key, const std::string& def = "") const;
private:
std::string id_;