Merge pull request #298 from Banaan/master

add get_query to URI handling
This commit is contained in:
Peter Thorson
2013-10-20 12:00:54 -07:00

View File

@@ -281,6 +281,14 @@ public:
s << m_resource;
return s.str();
}
std::string const get_query() const {
std::size_t found = m_resource.find("?");
if (found > 0)
return m_resource.substr(found + 1);
else
return "";
}
// get query?
// get fragment